• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hiberante annotaions not working in ejb3.0

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic