1

I am using the eclipse hibernate tools plug-in to reverse engineer my database. I spent my whole day looking for how to force the DAO generator to use HQL/Criteria with the session factory, transaction, etc.

Right now, if I have the table TABLE in my database, I obtain the DAO class TableHome. This class uses the persistence EntityManager.

I found tutorials using an older version of hibernate tools generating TableDAO instead, and this is what I exactly need.

Thank you very much.

Guillaume Husta
  • 4,049
  • 33
  • 40
Julio Guerra
  • 5,523
  • 9
  • 51
  • 75
  • What is your question exactly? Is it: "How do you force the DAO generator to use HQL/Criteria with the session factory, transaction, etc.?" – javamonkey79 Jun 01 '10 at 19:53
  • Yes, I would like to force the DAO generator to use HQL/Criteria with the session factory, transaction, etc instead of the EntityManager. – Julio Guerra Jun 01 '10 at 20:38

2 Answers2

1

Whether you're using Eclipse or not is unclear but if you are, maybe check if the Console Configuration used by the Code Generation module is not configured for JPA:

alt text http://docs.jboss.org/tools/2.1.0.Beta1/hibernatetools/html/images/plugins/plugins_2.png

See also

Pascal Thivent
  • 562,542
  • 136
  • 1,062
  • 1,124
0

Use Salto-DB Eclipse plugin. It comes with all the stuff.

Makky
  • 17,117
  • 17
  • 63
  • 86