3939import org .hibernate .processor .Context ;
4040import org .hibernate .processor .util .AccessTypeInformation ;
4141import org .hibernate .processor .util .FileTimeStampChecker ;
42- import org .hibernate .processor .util .StringUtil ;
4342import org .hibernate .processor .util .TypeUtils ;
4443import org .hibernate .processor .util .xml .XmlParserHelper ;
4544
4645import jakarta .persistence .AccessType ;
4746import org .checkerframework .checker .nullness .qual .Nullable ;
4847
48+ import static org .hibernate .processor .util .StringUtil .determineFullyQualifiedClassName ;
49+ import static org .hibernate .processor .util .StringUtil .packageNameFromFullyQualifiedName ;
50+
4951/**
5052 * Parser for JPA XML descriptors (persistence.xml and referenced mapping files).
5153 *
@@ -259,7 +261,7 @@ private FileTimeStampChecker loadTimeStampCache() {
259261
260262 private void parseEntities (List <JaxbEntityImpl > entities , String defaultPackageName ) {
261263 for ( JaxbEntityImpl entity : entities ) {
262- String fqcn = StringUtil . determineFullyQualifiedClassName ( defaultPackageName , entity .getClazz () );
264+ String fqcn = determineFullyQualifiedClassName ( defaultPackageName , entity .getClazz () );
263265
264266 if ( !xmlMappedTypeExists ( fqcn ) ) {
265267 context .logMessage (
@@ -286,9 +288,9 @@ private void parseEmbeddable(
286288 List <JaxbEmbeddableImpl > embeddables ,
287289 String defaultPackageName ) {
288290 for ( JaxbEmbeddableImpl embeddable : embeddables ) {
289- String fqcn = StringUtil . determineFullyQualifiedClassName ( defaultPackageName , embeddable .getClazz () );
291+ String fqcn = determineFullyQualifiedClassName ( defaultPackageName , embeddable .getClazz () );
290292 // we have to extract the package name from the fqcn. Maybe the entity was setting a fqcn directly
291- String pkg = StringUtil . packageNameFromFqcn ( fqcn );
293+ String pkg = packageNameFromFullyQualifiedName ( fqcn );
292294
293295 if ( !xmlMappedTypeExists ( fqcn ) ) {
294296 context .logMessage (
@@ -313,11 +315,11 @@ private void parseMappedSuperClass(
313315 List <JaxbMappedSuperclassImpl > mappedSuperClasses ,
314316 String defaultPackageName ) {
315317 for ( JaxbMappedSuperclassImpl mappedSuperClass : mappedSuperClasses ) {
316- String fqcn = StringUtil . determineFullyQualifiedClassName (
318+ String fqcn = determineFullyQualifiedClassName (
317319 defaultPackageName , mappedSuperClass .getClazz ()
318320 );
319321 // we have to extract the package name from the fqcn. Maybe the entity was setting a fqcn directly
320- String pkg = StringUtil . packageNameFromFqcn ( fqcn );
322+ String pkg = packageNameFromFullyQualifiedName ( fqcn );
321323
322324 if ( !xmlMappedTypeExists ( fqcn ) ) {
323325 context .logMessage (
@@ -367,23 +369,23 @@ private void determineXmlAccessTypes() {
367369
368370 for ( JaxbEntityImpl entity : mappings .getEntities () ) {
369371 final String name = entity .getClazz ();
370- fqcn = StringUtil . determineFullyQualifiedClassName ( packageName , name );
372+ fqcn = determineFullyQualifiedClassName ( packageName , name );
371373 final AccessType explicitAccessType = entity .getAccess ();
372374 final AccessTypeInformation accessInfo = new AccessTypeInformation ( fqcn , explicitAccessType , defaultAccessType );
373375 context .addAccessTypeInformation ( fqcn , accessInfo );
374376 }
375377
376378 for ( JaxbMappedSuperclassImpl mappedSuperClass : mappings .getMappedSuperclasses () ) {
377379 final String name = mappedSuperClass .getClazz ();
378- fqcn = StringUtil . determineFullyQualifiedClassName ( packageName , name );
380+ fqcn = determineFullyQualifiedClassName ( packageName , name );
379381 final AccessType explicitAccessType = mappedSuperClass .getAccess ();
380382 final AccessTypeInformation accessInfo = new AccessTypeInformation ( fqcn , explicitAccessType , defaultAccessType );
381383 context .addAccessTypeInformation ( fqcn , accessInfo );
382384 }
383385
384386 for ( JaxbEmbeddableImpl embeddable : mappings .getEmbeddables () ) {
385387 final String name = embeddable .getClazz ();
386- fqcn = StringUtil . determineFullyQualifiedClassName ( packageName , name );
388+ fqcn = determineFullyQualifiedClassName ( packageName , name );
387389 final AccessType explicitAccessType = embeddable .getAccess ();
388390 final AccessTypeInformation accessInfo = new AccessTypeInformation ( fqcn , explicitAccessType , defaultAccessType );
389391 context .addAccessTypeInformation ( fqcn , accessInfo );
@@ -398,7 +400,7 @@ private void determineAnnotationAccessTypes() {
398400
399401 for ( JaxbEntityImpl entity : mappings .getEntities () ) {
400402 String name = entity .getClazz ();
401- fqcn = StringUtil . determineFullyQualifiedClassName ( packageName , name );
403+ fqcn = determineFullyQualifiedClassName ( packageName , name );
402404 TypeElement element = context .getTypeElementForFullyQualifiedName ( fqcn );
403405 if ( element != null ) {
404406 TypeUtils .determineAccessTypeForHierarchy ( element , context );
@@ -407,7 +409,7 @@ private void determineAnnotationAccessTypes() {
407409
408410 for ( JaxbMappedSuperclassImpl mappedSuperClass : mappings .getMappedSuperclasses () ) {
409411 String name = mappedSuperClass .getClazz ();
410- fqcn = StringUtil . determineFullyQualifiedClassName ( packageName , name );
412+ fqcn = determineFullyQualifiedClassName ( packageName , name );
411413 TypeElement element = context .getTypeElementForFullyQualifiedName ( fqcn );
412414 if ( element != null ) {
413415 TypeUtils .determineAccessTypeForHierarchy ( element , context );
0 commit comments