• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate JSP validation

 
Avinash Kandoti
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys

I have created an EJB that receives data from a web service and sends the data to thbe hibernate entity class that puts it in the database. I have 2 questions

1. I take the complete argument list in an object how can I access each variable seprately to do some validation in my ejb before calling em.merge on the object.
2. How do I use the @Email JPA validator in my hibernate entity class.

Here is the code for my EJB

TbdcsfacilityFacade.java
--------------------------------



My entity class

Tbdcsfacility.java
--------------------




Thank you all .
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please read: KeepItDown
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!