Top Description Fields Constructors Methods
org.hibernate.boot.model.source.internal.hbm

pack-priv Class EntityNamingSourceImpl

extends Object
implements EntityNamingSource
Class Inheritance
All Implemented Interfaces
org.hibernate.boot.model.source.spi.EntityNamingSource, org.hibernate.boot.model.naming.EntityNaming
Imports
org.hibernate.boot.model.source.spi.EntityNamingSource, org.hibernate.internal.util.StringHelper, org.hibernate.mapping.PersistentClass

Implementation of EntityNamingSource
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private final String
private final String
private final String
private final String

Constructor Summary

AccessConstructor and Description
public
EntityNamingSourceImpl(String entityName, String className, String jpaEntityName)

public

Method Summary

Modifier and TypeMethod and Description
public String
getClassName()

Implements org.hibernate.boot.model.naming.EntityNaming.getClassName.

Retrieve the fully-qualified entity class name.
public String
public String
public String
getTypeName()

Implements org.hibernate.boot.model.source.spi.EntityNamingSource.getTypeName.

Decode the name that we should expect to be used elsewhere to reference the modeled entity by decoding the entity-name/class-name combo.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

classNameback to summary
private final String className
entityNameback to summary
private final String entityName
jpaEntityNameback to summary
private final String jpaEntityName
typeNameback to summary
private final String typeName

Constructor Detail

EntityNamingSourceImplback to summary
public EntityNamingSourceImpl(String entityName, String className, String jpaEntityName)
EntityNamingSourceImplback to summary
public EntityNamingSourceImpl(PersistentClass entityBinding)

Method Detail

getClassNameback to summary
public String getClassName()

Implements org.hibernate.boot.model.naming.EntityNaming.getClassName.

Doc from org.hibernate.boot.model.naming.EntityNaming.getClassName.

Retrieve the fully-qualified entity class name. Note that for dynamic entities, this may return (what???). todo : what should this return for dynamic entities? null? The entity name?

Returns:String

The entity class name.

Annotations
@Override
getEntityNameback to summary
public String getEntityName()

Implements org.hibernate.boot.model.naming.EntityNaming.getEntityName.

Doc from org.hibernate.boot.model.naming.EntityNaming.getEntityName.

The Hibernate entity name. This might be either:

  • The explicitly specified entity name, if one
  • The unqualified entity class name if no entity name was explicitly specified
Returns:String

The Hibernate entity name

Annotations
@Override
getJpaEntityNameback to summary
public String getJpaEntityName()

Implements org.hibernate.boot.model.naming.EntityNaming.getJpaEntityName.

Doc from org.hibernate.boot.model.naming.EntityNaming.getJpaEntityName.

The JPA-specific entity name. See jakarta.persistence.Entity#name() for details.

Returns:String

The JPA entity name, if one was specified. May return null if one was not explicitly specified.

Annotations
@Override
getTypeNameback to summary
public String getTypeName()

Implements org.hibernate.boot.model.source.spi.EntityNamingSource.getTypeName.

Doc from org.hibernate.boot.model.source.spi.EntityNamingSource.getTypeName.

Decode the name that we should expect to be used elsewhere to reference the modeled entity by decoding the entity-name/class-name combo.

Returns:String

The reference-able type name

Annotations
@Override