org.hibernate.boot.model.naming.ImplicitEntityNameSource Java Examples
The following examples show how to use
org.hibernate.boot.model.naming.ImplicitEntityNameSource.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: EntityBinder.java From lams with GNU General Public License v2.0 | 5 votes |
public Identifier determineImplicitName(final MetadataBuildingContext buildingContext) { return buildingContext.getBuildingOptions().getImplicitNamingStrategy().determinePrimaryTableName( new ImplicitEntityNameSource() { private final EntityNaming entityNaming = new EntityNaming() { @Override public String getClassName() { return className; } @Override public String getEntityName() { return entityName; } @Override public String getJpaEntityName() { return jpaEntityName; } }; @Override public EntityNaming getEntityNaming() { return entityNaming; } @Override public MetadataBuildingContext getBuildingContext() { return buildingContext; } } ); }
Example #2
Source File: MyImplicitNamingStrategy.java From Exam-Online with Apache License 2.0 | 4 votes |
@Override public Identifier determinePrimaryTableName(ImplicitEntityNameSource source) { Identifier identifier = super.determinePrimaryTableName(source); return toIdentifier(convert(identifier.getText()), source.getBuildingContext()); }
Example #3
Source File: CustomImplicitNamingStrategy.java From quarkus with Apache License 2.0 | 4 votes |
@Override public Identifier determinePrimaryTableName(ImplicitEntityNameSource source) { return toIdentifier("TBL_" + source.getEntityNaming().getEntityName().replace('.', '_').toUpperCase(), source.getBuildingContext()); }