-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: hashCode( ) , equals(), toString() from reveng.xml
PostPosted: Mon Feb 19, 2007 3:57 pm 
Beginner
Beginner

Joined: Wed Oct 29, 2003 10:43 am
Posts: 38
Location: Chicago
I am using the hibernate plugin for eclipse.

I created a reveng.xml file and generated the .hbm.xml and .java(Pojo).

It worked great except there is no
hashCode(), equals(), or toString() method autogenerated.

Is there a setting i need to set?

can it be set from the plugin?

also, I am interested in generating a third non standard file with and exporter can someone point me to a few links describing the api and what inputs (MetaData) a exporter receives and when(lifecycle)?

I am using Hibernate Tools 3.2.0.beta8

_________________
LET IT BE :)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 22, 2007 7:08 am 
Newbie

Joined: Sat Feb 03, 2007 2:58 pm
Posts: 7
I do not use hibernate plugin for eclipse, but <hibernatetool> AND task.
However, I think that your problem is due to the fact that you generate
both .hbm.xml files and .java files (pojos) at the same time reading the
database metadata. Instead of generating mapping files first (.hbm.xml),
add the <meta> tags that you wish (use-in-equals use-in-tostring), and
then generate pojo files from .hbm.xml files using the hibernate.cfg.xml.

I hope this can help you.

regards,
emmie


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 22, 2007 7:13 am 
Newbie

Joined: Sat Feb 03, 2007 2:58 pm
Posts: 7
I do not use hibernate plugin for eclipse, but <hibernatetool> AND task.
However, I think that your problem is due to the fact that you generate
both .hbm.xml files and .java files (pojos) at the same time reading the
database metadata. Instead of generating mapping files first (.hbm.xml),
add the <meta> tags that you wish (see
http://www.hibernate.org/hib_docs/tools/reference/en/html/codegen.html#d0e2013)
and then generate pojo files from .hbm.xml files using the hibernate.cfg.xml.

I hope this can help you.

regards,
emmie


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.