above example doesn't seems an example of JPA with hibernate. Where is your persistence.xml which contains actually the name of persistent unit? persistence.xml goes in META-INF folder as per the JPA specification but in your example i can't see. You have used javax.persistence api but this doesn't means it is a JPA example.
I have two questions.
1. This example was for CRUD app in JPA or Hibernate ?
Because i can't see any implementation of Entity Manager etc.
2. And if this is JPA then what is the difference between Hibernate & JPA ?
JPA Hibernate example?jagdish April 16, 2012 at 11:08 AM
above example doesn't seems an example of JPA with hibernate. Where is your persistence.xml which contains actually the name of persistent unit? persistence.xml goes in META-INF folder as per the JPA specification but in your example i can't see. You have used javax.persistence api but this doesn't means it is a JPA example.
CRUD App In JAVAAkil October 12, 2012 at 4:21 AM
I have two questions. 1. This example was for CRUD app in JPA or Hibernate ? Because i can't see any implementation of Entity Manager etc. 2. And if this is JPA then what is the difference between Hibernate & JPA ?
Post your Comment