• 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

persistence.xml file for MS SQL Server 2000  RSS feed

 
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
Eclipse IDE Hibernate 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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!