-
Notifications
You must be signed in to change notification settings - Fork 24
Hibernate Mapping
Currently, hibernate.cfg.xml is ignored.
All mapping is done via bean sessionFactory specified in persistence.xml ( WEB-INF folder). It takes entire cz.kiv.zcu.eegdatabase.data.pojo resource package and uses hibernate config files from there.
All mapping is done via bean sessionFactory specified in persistence.xml ( WEB-INF folder). It takes entire cz.kiv.zcu.eegdatabase.data.pojo resource package and uses hibernate config files from there.
PLUS it loads hibernate.cfg.xml file which contains references to classes mapped by annotations.
The Oracle database needs to contain HIBERNATE_SEQUENCE sequence (for ID generators) for annotation mapping. Can be replaced by custom sequences, even by unique sequence for each entity. Yet it seems unnecessary atm. Therefore only HIBERNATE_SEQUENCE has been created in the accesscontrol dev. database.
NOTE: This is only a temporary solution, sooner or later all mapping should be dona via annotations!
NOTE2: This will be merged into the master branch at the end of the accesscontrol development.