public class HibernateProvider extends Object implements JpaProvider
Constructor and Description |
---|
HibernateProvider() |
Modifier and Type | Method and Description |
---|---|
private static void |
copySetting(Properties settings,
String hibernateProperty,
String fastnateProperty) |
String |
getDefaultGeneratorTable()
The name of the default generator
TableGenerator.table() , if none was specified for a table generator. |
String |
getDefaultGeneratorTablePkColumnName()
The name of the default generator
TableGenerator.pkColumnName() , if none was specified for a table
generator. |
String |
getDefaultGeneratorTablePkColumnValue()
The name of the default generator
TableGenerator.pkColumnValue() , if none was specified for a table
generator. |
String |
getDefaultGeneratorTableValueColumnName()
The name of the default generator
TableGenerator.valueColumnName() , if none was specified for a table
generator. |
String |
getDefaultSequence()
The name of the default
sequence , if none was specified for a sequence
generator. |
private static Class<? extends GeneratorDialect> |
getGeneratorDialectFromConnectionDriver(Properties settings) |
private static Class<? extends GeneratorDialect> |
getGeneratorDialectFromConnectionUrl(Properties settings) |
private static Class<? extends GeneratorDialect> |
getGeneratorDialectFromHibernateDialect(Properties settings) |
void |
initialize(Properties settings)
Initializes this provider from the given settings.
|
boolean |
isJoinedDiscriminatorNeeded()
Indicates if the current JPA provider needs always a discriminator column for a JOINED table.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createBasicConverter, createConverter, createFallbackConverter
private static void copySetting(Properties settings, String hibernateProperty, String fastnateProperty)
private static Class<? extends GeneratorDialect> getGeneratorDialectFromConnectionDriver(Properties settings)
private static Class<? extends GeneratorDialect> getGeneratorDialectFromConnectionUrl(Properties settings)
private static Class<? extends GeneratorDialect> getGeneratorDialectFromHibernateDialect(Properties settings)
public String getDefaultGeneratorTable()
JpaProvider
TableGenerator.table()
, if none was specified for a table generator.getDefaultGeneratorTable
in interface JpaProvider
public String getDefaultGeneratorTablePkColumnName()
JpaProvider
TableGenerator.pkColumnName()
, if none was specified for a table
generator.getDefaultGeneratorTablePkColumnName
in interface JpaProvider
public String getDefaultGeneratorTablePkColumnValue()
JpaProvider
TableGenerator.pkColumnValue()
, if none was specified for a table
generator.getDefaultGeneratorTablePkColumnValue
in interface JpaProvider
public String getDefaultGeneratorTableValueColumnName()
JpaProvider
TableGenerator.valueColumnName()
, if none was specified for a table
generator.getDefaultGeneratorTableValueColumnName
in interface JpaProvider
public String getDefaultSequence()
JpaProvider
sequence
, if none was specified for a sequence
generator.getDefaultSequence
in interface JpaProvider
public void initialize(Properties settings)
JpaProvider
initialize
in interface JpaProvider
settings
- the settings of the generator contextpublic boolean isJoinedDiscriminatorNeeded()
JpaProvider
isJoinedDiscriminatorNeeded
in interface JpaProvider
true
to always write a discriminator column, false
if it should be written only if
explicitly givenCopyright © 2022 fastnate.org. All rights reserved.