public class HibernateConfig extends Object
Modifier and Type | Field and Description |
---|---|
protected ConnectionProvider |
connectionProvider |
static org.slf4j.Logger |
logger |
protected Configuration |
portofinoConfiguration |
Constructor and Description |
---|
HibernateConfig(ConnectionProvider connectionProvider,
Configuration portofinoConfiguration) |
Modifier and Type | Method and Description |
---|---|
protected void |
addSyntheticProperty(Mappings mappings,
ManyToOne m2o,
ForeignKey relationship,
Table oneMDTable,
String oneMDQualifiedTableName)
(Adapted from Hibernate) Create a synthetic property to refer to including an embedded component value
containing all the properties mapped to the referenced columns.
|
Configuration |
buildSessionFactory(Database database) |
protected Column |
createColumn(Mappings mappings,
Table tab,
Column column) |
protected ToOne |
createM2O(Configuration config,
Mappings mappings,
ForeignKey relationship) |
protected void |
createO2M(Configuration config,
Mappings mappings,
ForeignKey relationship) |
protected void |
createPKComposite(Mappings mappings,
Table mdTable,
String pkName,
RootClass clazz,
Table tab,
List<Column> columnPKList) |
protected void |
createPKSingle(Mappings mappings,
Table mdTable,
String pkName,
RootClass clazz,
Table tab,
List<Column> columnPKList) |
protected Property |
createProperty(Column column,
Value value) |
protected RootClass |
createTableMapping(Mappings mappings,
Table aTable) |
String |
getFalseString() |
String |
getTrueString() |
void |
setFalseString(String falseString) |
boolean |
setHibernateType(SimpleValue value,
Column column) |
protected void |
setPKColumnGenerator(Mappings mappings,
RootClass clazz,
Table tab,
Column column,
SimpleValue id,
Generator generator) |
void |
setTrueString(String trueString) |
protected void |
setupConfigurationProperties(Configuration configuration) |
protected void |
setupConnection(Configuration configuration) |
protected final ConnectionProvider connectionProvider
protected final Configuration portofinoConfiguration
public static final org.slf4j.Logger logger
public HibernateConfig(ConnectionProvider connectionProvider, Configuration portofinoConfiguration)
public Configuration buildSessionFactory(Database database)
protected void setupConfigurationProperties(Configuration configuration)
protected void setupConnection(Configuration configuration)
protected void createPKComposite(Mappings mappings, Table mdTable, String pkName, RootClass clazz, Table tab, List<Column> columnPKList)
protected void createPKSingle(Mappings mappings, Table mdTable, String pkName, RootClass clazz, Table tab, List<Column> columnPKList)
protected void setPKColumnGenerator(Mappings mappings, RootClass clazz, Table tab, Column column, SimpleValue id, Generator generator)
protected void createO2M(Configuration config, Mappings mappings, ForeignKey relationship)
protected ToOne createM2O(Configuration config, Mappings mappings, ForeignKey relationship)
protected void addSyntheticProperty(Mappings mappings, ManyToOne m2o, ForeignKey relationship, Table oneMDTable, String oneMDQualifiedTableName)
public boolean setHibernateType(@Nullable SimpleValue value, Column column)
public String getTrueString()
public void setTrueString(String trueString)
public String getFalseString()
public void setFalseString(String falseString)