• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Best Object Relational Model

 
Reza Rav.
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know you hear this question more than 10 times per day but technologies change. I invest two week to learn JPA it needs to create a JAR file (noe in JEE usage mode) to run. I think it is not good, there are some other libraries which can do something similar with less feature and with out requirement of creating JAR file. my question is do you know any better approach than JPA ?
Or in simple term do you any de facto standard for Object Relational mapping ?
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reza,
JPA is a standard. Hibernate, etc are implementations of it.

I'm going to move this thread to our O/R forum where you might get more explanation.
 
Mike Keith
author
Ranch Hand
Posts: 304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Reza,

I'm not sure what you mean when you say that JPA requires you to create a JAR file. JPA does not require a jar file. The JPA artifacts may be placed loosely in whatever deployment vehicle you are calling it from in Java EE 5.
 
Reza Rav.
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for posting it in wrong place I didn't see O/R Mapping group.

I know when you use JEE you didn't need to create JAR file, but what happen when I don't want to use JEE?
I want to use JSE and use this persistence model with out creating JAR file.
I think it is not good that I must create JAR file for using JPA.

I know another library which does the same thing(less quality) but it doesn't need JAR file creation. it has only one persistence.properties file which should locate in classpath and works fine.
[ June 08, 2007: Message edited by: Reza Rawassizadeh ]
 
Reza Rav.
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe for make it clear I explain more:
I use toplink libraries which are in new Sun App. Server for my JPA implementation.
 
Mike Keith
author
Ranch Hand
Posts: 304
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reza, you do not need to put the classes in a jar when you use JPA in Java SE. You just have to add the directory containing your classes to your classpath and put the persistence.xml file in a META-INF folder in that directory. For portability you should also list all of your persistent classes in the persistence.xml file.
 
Reza Rav.
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you do not need to put the classes in a jar when you use JPA in Java SE.

I know, you interpret it wrong. My problem is JAR file I don't like to create JAR file every time for running my application(when I'm in development phase)
 
Reza Rav.
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mike I'm reading your book for tutorial.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic