Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » Is M5 usable for JPA?
Is M5 usable for JPA? [message #434322] Sat, 03 March 2007 06:58 Go to next message
Marcel is currently offline Marcel
Messages: 3
Registered: July 2009
Junior Member
Hi,

i have installed:

cd $HOME
tar xzvf /opt/download/EJB/Dali/eclipse-SDK-3.3M5eh-linux-gtk.tar.gz
unzip /opt/download/EJB/Dali/emf-sdo-xsd-SDK-2.3.0M5.zip
unzip /opt/download/EJB/Dali/GEF-SDK-3.3M5.zip
unzip /opt/download/EJB/Dali/wtp-sdk-S-2.0M5-200702230758.zip
unzip /opt/download/EJB/Dali/dtp-sdk_1.5M5.zip
unzip /opt/download/EJB/Dali/wtp-jpa-sdk-S-2.0M5-200702230758.zip
unzip /opt/download/EJB/Dali/wtp-jsf-sdk-S-2.0M5-200702230758.zip

additionally

db-derby-10.1.3.1-bin.zip
glassfish-persistence-installer-v2-b36.jar

but after trying almost two days i was not able to create any
peristent entity.

Had anybody success to create a JPA project and a hello world EJB3 bean?

1) If i click on persistence.xml eclipse hangs forever
2) There is no menue item to create a persistence entity bean
3) It took me hours to create a first DB connection (e.g. the Derby URL
with some Windows path syntax was not editable), now i have ended up to
connect to a Oracle instance.
4) All docs/tutorials i've found don't seem to relate to what i am seeing

All i wanted to achieve is some five/six entity beans in a normal
JDK 1.5 (no J2EE) environment which i can embedd into my project.

Can anybode advice me what is a quick and easy approach to do this
or do i need to fall back to classical JDBC coding?

Thanks
Marcel
Re: Is M5 usable for JPA? [message #434324 is a reply to message #434322] Tue, 06 March 2007 07:42 Go to previous messageGo to next message
Lumir Vanek is currently offline Lumir Vanek
Messages: 32
Registered: July 2009
Member
Hi,

I work with similar config. (On Windows), on switching one of my project
from own O/R layer to JPA. DB is Oracle, JPA impl. is
toplink-essentials. DB layer is used in three subprojects: GUI app
(Swing), console app and JEE/JSF.

1. Editing persistence.xml works normally for me.

2. What type of project you created ? Java or JPA ? Do you see JPA in
project facets ? Do you have set JPA library in Window->Preferences->JPA ?

3. I am able to generate entities with JPA, but don't use it. I have
legacy database and need better control on generated entities than JPA
generator allow. I use Hibernate reverse engineering tools instead, for
this job.

4. At this time, I don't have this work finished. I have about 10
generated entity classes, 10 handly created native queries, service
classes for it and working JUnit tests.

Config:
xsd-runtime-2.3.0M5.zip
wtp-jpa-S-2.0M5-200702230758.zip
GEF-runtime-3.3M5.zip
wtp-S-2.0M5-200702230758.zip
dtp_1.5M5.zip
emf-sdo-runtime-2.3.0M5.zip
wtp-jsf-S-2.0M5-200702230758.zip
eclipse-SDK-3.3M5eh-win32.zip

Also see:
http://www.eclipse.org/dali/docs/tutorial/jsf/dali_jsf_tutor ial.htm
but some info is absolete, its for WTP 1.5.

And:
http://www.avaje.org/jpaapi.html
http://www.jpox.org/docs/1_1/tutorials/eclipse_dali.html


Bye,
Lumir Vanek
Re: Is M5 usable for JPA? [message #434326 is a reply to message #434322] Tue, 06 March 2007 17:18 Go to previous message
Neil Hauge is currently offline Neil Hauge
Messages: 469
Registered: July 2009
Senior Member
Marcel,

Sorry to hear you are having trouble getting started. I need to update
our getting started section, but we are migrating the website, so this
probably won't be up for another week or so. In the mean time, here are
some specific instructions on how to get started:

-Run Eclipse with a Java 5 JDK
-Define the default JPA library (toplink-essentials.jar in your case) in
the Preferences->JPA page.
-Create a JPA project
-Add the DEFAULT_JPA_LIB variable to your project build path.
-Define a DB connection
-Enter your Entities in the persistence.xml
-Configure Entities in the JPA Details view

Hopefully this helps you get going.

Neil





Marcel wrote:

> Hi,

> i have installed:

> cd $HOME
> tar xzvf /opt/download/EJB/Dali/eclipse-SDK-3.3M5eh-linux-gtk.tar.gz
> unzip /opt/download/EJB/Dali/emf-sdo-xsd-SDK-2.3.0M5.zip
> unzip /opt/download/EJB/Dali/GEF-SDK-3.3M5.zip
> unzip /opt/download/EJB/Dali/wtp-sdk-S-2.0M5-200702230758.zip
> unzip /opt/download/EJB/Dali/dtp-sdk_1.5M5.zip
> unzip /opt/download/EJB/Dali/wtp-jpa-sdk-S-2.0M5-200702230758.zip
> unzip /opt/download/EJB/Dali/wtp-jsf-sdk-S-2.0M5-200702230758.zip

> additionally

> db-derby-10.1.3.1-bin.zip
> glassfish-persistence-installer-v2-b36.jar

> but after trying almost two days i was not able to create any
> peristent entity.

> Had anybody success to create a JPA project and a hello world EJB3 bean?

> 1) If i click on persistence.xml eclipse hangs forever
> 2) There is no menue item to create a persistence entity bean
> 3) It took me hours to create a first DB connection (e.g. the Derby URL
> with some Windows path syntax was not editable), now i have ended up to
> connect to a Oracle instance.
> 4) All docs/tutorials i've found don't seem to relate to what i am seeing

> All i wanted to achieve is some five/six entity beans in a normal
> JDK 1.5 (no J2EE) environment which i can embedd into my project.

> Can anybode advice me what is a quick and easy approach to do this
> or do i need to fall back to classical JDBC coding?

> Thanks
> Marcel
Re: Is M5 usable for JPA? [message #592258 is a reply to message #434322] Tue, 06 March 2007 07:42 Go to previous message
Lumir Vanek is currently offline Lumir Vanek
Messages: 32
Registered: July 2009
Member
Hi,

I work with similar config. (On Windows), on switching one of my project
from own O/R layer to JPA. DB is Oracle, JPA impl. is
toplink-essentials. DB layer is used in three subprojects: GUI app
(Swing), console app and JEE/JSF.

1. Editing persistence.xml works normally for me.

2. What type of project you created ? Java or JPA ? Do you see JPA in
project facets ? Do you have set JPA library in Window->Preferences->JPA ?

3. I am able to generate entities with JPA, but don't use it. I have
legacy database and need better control on generated entities than JPA
generator allow. I use Hibernate reverse engineering tools instead, for
this job.

4. At this time, I don't have this work finished. I have about 10
generated entity classes, 10 handly created native queries, service
classes for it and working JUnit tests.

Config:
xsd-runtime-2.3.0M5.zip
wtp-jpa-S-2.0M5-200702230758.zip
GEF-runtime-3.3M5.zip
wtp-S-2.0M5-200702230758.zip
dtp_1.5M5.zip
emf-sdo-runtime-2.3.0M5.zip
wtp-jsf-S-2.0M5-200702230758.zip
eclipse-SDK-3.3M5eh-win32.zip

Also see:
http://www.eclipse.org/dali/docs/tutorial/jsf/dali_jsf_tutor ial.htm
but some info is absolete, its for WTP 1.5.

And:
http://www.avaje.org/jpaapi.html
http://www.jpox.org/docs/1_1/tutorials/eclipse_dali.html


Bye,
Lumir Vanek
Re: Is M5 usable for JPA? [message #592266 is a reply to message #434322] Tue, 06 March 2007 17:18 Go to previous message
Neil Hauge is currently offline Neil Hauge
Messages: 469
Registered: July 2009
Senior Member
Marcel,

Sorry to hear you are having trouble getting started. I need to update
our getting started section, but we are migrating the website, so this
probably won't be up for another week or so. In the mean time, here are
some specific instructions on how to get started:

-Run Eclipse with a Java 5 JDK
-Define the default JPA library (toplink-essentials.jar in your case) in
the Preferences->JPA page.
-Create a JPA project
-Add the DEFAULT_JPA_LIB variable to your project build path.
-Define a DB connection
-Enter your Entities in the persistence.xml
-Configure Entities in the JPA Details view

Hopefully this helps you get going.

Neil





Marcel wrote:

> Hi,

> i have installed:

> cd $HOME
> tar xzvf /opt/download/EJB/Dali/eclipse-SDK-3.3M5eh-linux-gtk.tar.gz
> unzip /opt/download/EJB/Dali/emf-sdo-xsd-SDK-2.3.0M5.zip
> unzip /opt/download/EJB/Dali/GEF-SDK-3.3M5.zip
> unzip /opt/download/EJB/Dali/wtp-sdk-S-2.0M5-200702230758.zip
> unzip /opt/download/EJB/Dali/dtp-sdk_1.5M5.zip
> unzip /opt/download/EJB/Dali/wtp-jpa-sdk-S-2.0M5-200702230758.zip
> unzip /opt/download/EJB/Dali/wtp-jsf-sdk-S-2.0M5-200702230758.zip

> additionally

> db-derby-10.1.3.1-bin.zip
> glassfish-persistence-installer-v2-b36.jar

> but after trying almost two days i was not able to create any
> peristent entity.

> Had anybody success to create a JPA project and a hello world EJB3 bean?

> 1) If i click on persistence.xml eclipse hangs forever
> 2) There is no menue item to create a persistence entity bean
> 3) It took me hours to create a first DB connection (e.g. the Derby URL
> with some Windows path syntax was not editable), now i have ended up to
> connect to a Oracle instance.
> 4) All docs/tutorials i've found don't seem to relate to what i am seeing

> All i wanted to achieve is some five/six entity beans in a normal
> JDK 1.5 (no J2EE) environment which i can embedd into my project.

> Can anybode advice me what is a quick and easy approach to do this
> or do i need to fall back to classical JDBC coding?

> Thanks
> Marcel
Previous Topic:Is M5 usable for JPA?
Next Topic:UML class diagrams of JPA models
Goto Forum:
  


Current Time: Sun Aug 31 00:28:34 EDT 2014

Powered by FUDForum. Page generated in 0.01654 seconds