• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

persistence.xml file for MS SQL Server 2000

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which JPA implementation are you using?
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Brace yourself while corporate america tries to sell us its things. Some day they will chill and use tiny ads.
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic