This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Hiberante annotaions not working in ejb3.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Hiberante annotaions not working in ejb3.0" Watch "Hiberante annotaions not working in ejb3.0" New topic
Author

Hiberante annotaions not working in ejb3.0

V.N.T.Deepak Solasa
Greenhorn

Joined: May 29, 2007
Posts: 16
Hi
I am using ejb3.0 entities and there in I am trying to use hibernate annotations like @Length,@Email etc.ofcourse I am not getting any run time or compile time problems but my application is not considering the any of the hibernate annotations at all,
For eg,I have a database field articleNum where in I decalared @Length(max=15)

I am wrirting my own validations explicitly.whats the problem
Even i have a necessary jar files also.

Thanks in Advance
Deepak Solasa
Zenikko Sugiarto
Ranch Hand

Joined: Jan 09, 2005
Posts: 58
Hello, I'm still pretty new to the EJB 3 scene as well, but I think you have this problem because you need to use Hibernate via the (JPA)Java Persistence API?

The idea behind JPA is for common persistence API, meaning that without changing the code, you can *theoritically* swap Hibernate for Toplink.

If you use hibernate-specific tags, it's breaking away from JPA. That make sense?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hiberante annotaions not working in ejb3.0