wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes persistence.xml file for MS SQL Server 2000 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "persistence.xml file for MS SQL Server 2000" Watch "persistence.xml file for MS SQL Server 2000" New topic
Author

persistence.xml file for MS SQL Server 2000

Aneesh Gopalan
Greenhorn

Joined: May 06, 2008
Posts: 2
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


SCJP 1.5<br />SCWCD 1.4
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Which JPA implementation are you using?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ray Johnson
Greenhorn

Joined: Dec 14, 2007
Posts: 13
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.


"It's been so long since I've done a good thing--the right thing" : Tears Of Sun
Aneesh Gopalan
Greenhorn

Joined: May 06, 2008
Posts: 2
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: persistence.xml file for MS SQL Server 2000
 
Similar Threads
SessionEdit pattern
JPA - How to persist new table without exception (SE) environment
Problem with refresh() method of EntityManamger in JPA
How to ignore / merge duplicates in OneToMany when using multiple emf (ProJPA2)
Can not run JPA sample example using J2SE