-->
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.  [ 1 post ] 
Author Message
 Post subject: Reverse Engineer question(eclipse/tapastry/mysql based)
PostPosted: Tue Oct 28, 2008 8:28 am 
Newbie

Joined: Tue Oct 28, 2008 8:10 am
Posts: 5
Hibernate version:Latest

Name and version of the database you are using:Mysql 5.0.45

Hello,

I have the reverse engineering working correctly but I wish to modify it a bit.

Tapestry requires and @Validate("required") annotation in front of the variables of the class that are required. I have to manually put these in. Is there a way I can make this happen each time I generate my POJO's?

Currently it puts this annotation in front of required field's getters:
@Column(name = "fieldname", nullable = false, length = 100)

Some information that may be needed:

In the Hibernate Code Generation window:

Tab: Main
Reverse engineer from JDBC Connection checked
Generate basic typed composite ids checked
Detect optimistic lock columns checked
Detect many-to-many tables checked

Tab: Exporters
Use Java 5 syntax checked
Generate EJB3 annotations checked
Domain code(.java) checked


Thanks,
--James


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

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.