-->
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.  [ 6 posts ] 
Author Message
 Post subject: Annotations missing in RI
PostPosted: Fri Oct 03, 2008 11:44 pm 
Regular
Regular

Joined: Tue May 24, 2005 9:06 am
Posts: 64
I checked out trunk. However, it looks like annotations like @Min, @Max, @Range etc. are still missing in RI. Do you have a coarse estimation when they will be available (Oct, Nov, Dec)?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 07, 2008 2:36 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
You mean the minimal set of annotations that will make it in the spec?
I think I mainly nailed them down but I need to define them in the spec before pushing them in the RI. When is a good question. If things go extremely well, it will be done this week. Otherwise, that will wait till after my vacations in two weeks.

- @Null / @NotNull
- @AssertFalse / @AssertTrue
- @Digits(integerDigits, fractionalDigits)
- @Past / @Future
- @Min / @Max (Numbers)
- @Size (String, Collection, Arrays)
- maybe @Pattern but more likely something simpler like @Like, @AlphaNumeric
- possibly @Email / @URL: while not primitive, they will be standardized in HTML 5 (WebForm 2.0)

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 14, 2008 3:59 am 
Regular
Regular

Joined: Tue May 24, 2005 9:06 am
Posts: 64
Looking at http://anonhibernate.labs.jboss.com/val ... onstraints I don't see any of these annotations:
* @Like, @AlphaNumeric, @Pattern
* @Email, @URL


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 12, 2009 4:27 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Well it's because I am not sure they should go in the spec. What do you think?

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 12, 2009 5:12 pm 
Regular
Regular

Joined: Tue May 24, 2005 9:06 am
Posts: 64
Well, my preferences regarding our apps are

1) The spec must cover @Email and @Like (or even better: @Pattern)

2) @URL and @Alphanumeric are goodies.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 12, 2009 6:04 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I have created a separated post. See http://forum.hibernate.org/viewtopic.ph ... 04#2403004

_________________
Emmanuel


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