• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPA 2.0, JSR 303 Bean Validation, and Resource Bundle

 
Robert Pepersack
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm using Bean Validation with JPA 2.0, EJB 3.1, and GlassFish 3.1 - but not with JSF. I have a CRUD service EJB jar file that gets deployed into GlassFish by itself.

I would like to specify validation messages for my JPA entities in a resource bundle (ValidationMessages.properties?). But I can't find documentation on where exactly to put the resource bundle file in my EJB jar file and how to configure JPA to use it automatically.

Thanks in advance.
 
Mahendr Shinde
Ranch Hand
Posts: 38
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JPA is just an API, you must be using some implementation like EclipseLink, TopLinks or Hibernate. so whatever Implementation you are using, search in it's documentation.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic