method « POJO « JPA Q&A





1. Java, Hibernate annotations, How to add methods to POJO object?    stackoverflow.com

I am using hibernate annotations. How to add methods to POJO object? For example i have "getChildNodes" method, associated with database, but i want also add recursive method "getAllChildNodes". I get ...

2. POJO Generation Missing Methods    forum.hibernate.org

Hibernate Tools plugin (version 3.2.4) for eclipse Hi all, I'm using the plugin to reverse engineer my POJOs and DAOs from my DB-Schema and for some reason the toString,equals and hashcode methods aren't created in the POJOs. What I'm doing is the following: Create a new JPA project. Configure it's persistence.xml file as follows: org.hibernate.ejb.HibernatePersistence false

4. add arbitrary field/method to POJO?    forum.hibernate.org

hello, I have three tables; A, B and C. There are one-to-many relations between A and B and between B and C. When generating my POJOs using Middlegen and hbm2java, I get all the POJOs I could wish for, except one thing: in my generated class C, I would like to have an additional field pwrLimit with a getter/setter. This additional ...

5. How does hibernate intercept POJO method calls?    forum.hibernate.org

I have a non-bibernate but interesting java question that hibernate developers could probably answer.. Basically, I want to intercept method calls on normal java beans at run time and map these to changes in a GUI and vice/versa in a generic reusable manner. This would save me a lot of development time as most of the code in a gui is ...