views:

458

answers:

1

Hello, 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.

A: 

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

See also

Pascal Thivent
Yes, "Core" is selected.I took a look into my Hibernate.jar and I found the template file used for my entities. And it is the JPA one !So my problem becomes, how to change this template ?I am currently searching.
Julio Guerra
@Julio No template for pure Hibernate?
Pascal Thivent
No and I finally made my DAOs myself :)
Julio Guerra