Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

persistence.xml file for MS SQL Server 2000

 
Aneesh Gopalan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Currently i am reading a book "Pro EJB 3 Java persistence API". In chapter 2 of that book authors written a simple java persistence code to run in a Java SE environment. But i don't know how to run that code..I am using SQL Server 2000 for persistence.. Could you please tell me how run that code in Java SE...
please tell me the details of how to create persistence.xml file for SQL Server 2000...

Employee.java


EmployeeService.java

EmployeeTest.java
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which JPA implementation are you using?
 
Ray Johnson
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are using hibernate this link might be helpful..

http://www.hibernate.org/hib_docs/entitymanager/reference/en/html/configuration.html

If you are using other implementations, the values will vary but the structure of you persistence.xml will be the same. Please post your findings if this information is useful.
 
Aneesh Gopalan
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your response...[ ]

I have installed glassfish on my system. I think glassfish contains a JPA library files..So i think i can use that jar files to run my java SE client code. Isn't glassfish cotains JPA?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic