• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

persistence.xml file for MS SQL Server 2000

 
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
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which JPA implementation are you using?
 
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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!