-->
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.  [ 5 posts ] 
Author Message
 Post subject: Tools Request: Generate Hibernate Validator Annotations
PostPosted: Wed Aug 22, 2007 12:21 am 
Newbie

Joined: Tue Aug 21, 2007 3:31 pm
Posts: 4
It's my understanding that, out-of-the-box, Hibernate Tools can't currently generate Hibernate Validator annotations for the classes it reverse engineers from an existing database schema. Instead, it generates @Column annotations which aren't recognized by Hibernate Validator.

It would be really great if Hibernate Tools could generate these Hibernate Validator annotations. From what I've read, it seems like this requires the creation of a new exporter for Hibernate Tools.

My motivation for this request is that I have a requirement to validate my objects at the application-level, and I'm not currently using Hibernate to persist my objects, although I hope to in the future.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 24, 2007 6:51 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the templates in seam-gen does this.

I have refrained from adding it yet since it would not be JPA spec compatiable......and that db level validations not always equal to validations...but it would just require adding a new flag (validator true/false) and just check for that in the templates.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 24, 2007 2:53 pm 
Newbie

Joined: Tue Aug 21, 2007 3:31 pm
Posts: 4
Is the "JBoss Seam Skeleton App" Hibernate Tools exporter the same thing as seam-gen?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 24, 2007 3:28 pm 
Newbie

Joined: Tue Aug 21, 2007 3:31 pm
Posts: 4
In Hibernate Tools 3.2.0 beta 9, I was getting an exception while running the "JBoss Seam Skeleton App" exporter. I just upgraded to Hibernate Tools beta 10 and noticed that the "JBoss Seam Skeleton App" exporter has been removed, so I guess that's a moot question.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 24, 2007 6:28 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
those templates were the old old predecessors of seam-gen

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.