public class JKHibernateBuilder
extends java.lang.Object
| Constructor and Description |
|---|
JKHibernateBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotatedClass(java.lang.Class... classes)
classes is array of classes
that have @Entity Annotation it may be one or more. |
void |
configure(java.lang.String configFileName)
configFileName is the xml configuration file path it may take null
the default name is hibernate.cfg.xml
if the name is null or isEmpty or not end with extension xml the default name is used. |
void |
createDatabaseTables(boolean create)
create is boolean if true make tables
|
org.hibernate.cfg.AnnotationConfiguration |
getConfig()
return the AnnotationConfiguration object
that have all configured classes |
java.lang.String |
getConfigFileName() |
public java.lang.String getConfigFileName()
public void configure(java.lang.String configFileName)
configFileName - configuration file namepublic void addAnnotatedClass(java.lang.Class... classes)
classes - classes that have @Entity AnnotationAnnotationConfigurationpublic void createDatabaseTables(boolean create)
create - true to create tables , false for notSchemaExportpublic org.hibernate.cfg.AnnotationConfiguration getConfig()
AnnotationConfiguration