Codegenerator « Core « JPA Q&A





1. CodeGenerator question    forum.hibernate.org

Hello, New to Hibernate and Open Source projects and I'm fiding this very interesting! Great job to all! I wanted to reverse engineer my hbm files to see if I had designed my class properly but I'm having a heck of a time getting code generator to run. It will be a very simple question for most of you but I ...

2. CodeGenerator and toString,equals methods    forum.hibernate.org

I'm generating my mapped classes with hibernate's codeGenerator tool. However, I'd like modified versions of toString and equals methods than what the generator comes up with. Is there a way that can be specified via XML? If not, what might be a way to achieve this, whilst still letting the generator do it's work? Thanks in advance, Mike K.

3. Codegenerator    forum.hibernate.org

If you mean you want java.lang.Integer then you should write java.lang.Integer, ok ? ;) Integer could just as well be a class in the default package - or a UserType.... yeah - I now noone in their right mind would do this, but trust me - I've seen weird people do this, and so hbm2java is only assuming very little to ...

4. Which way to go - XDoclet or CodeGenerator?    forum.hibernate.org

To manage synchronization between the Java persistent objects (simple POJOs) and the mapping (hbm) files, I know I have a choice between using CodeGenerator to generate beans from the mapping files or using XDoclet to generate hbm files from the Java classes. For my particular case, either of two can be made to work, but I'm leaning towards using XDoclet to ...

5. CodeGenerator    forum.hibernate.org

6. Is CodeGenerator missing or have I lost my mind?    forum.hibernate.org

Hibernate version: 2.1.6 Mapping documents: trivial (team-player example) Code between sessionFactory.openSession() and session.close(): I can't get that far yet. Full stack trace of any exception that occurs: java.lang.NoClassDefFoundError: net/sf/hibernate/tool/hbm2java/CodeGenerator Name and version of the database you are using: MySQL 4.0.21-nt The generated SQL (show_sql=true): I can't get that far yet. Debug level Hibernate log excerpt: I can't get that far yet. ...