Hi there!
I've faced with not very big issue, but I think it's still worth-asking. I try to stick to JPA interfaces in my application, but DAO objects that have been generated for me by "hbm2dao" seem to be non JPA-compliant: they use
Code:
org.hibernate.SessionFactory
instead of
Code:
javax.persistence.EntityManagerFactory
So my question is: if there is no way to produce JPA-compliant DAO code with "hbm2dao", how do I write my own DAO template and feed it to this task, so it worked instead of default one, daohome.ftl?
Does hbm2dao support custom templates at all?
thanks,
sonar