Scafolding CRUD application using MyEcllpse for Spring 8.6.1,
Oracle 10g DB.
New to Hibernate/JPA.
I am trying to get a sequence from Oracle’s dual table (nextval) (i.e. “select SEQUENCE_NAME.nextval from dual”).
I could only find how to execute custom sql through the current session via a SessionFactory.
“… sessionFactory = new Configuration().configure().buildSessionFactory();”
configure() by default looks for the hibernate.cfg.xml file that does not exist and I tried to use the dao application context.
Can you point me to a direction towards resources that I could read to get this working using the set up that MyEclipse for Spring scaffolds? for example how to get the Session Factory based upon the scaffolded configuration.
Thanks