PDA

View Full Version : Java Persistence Framework, I really need help!!



piousp
July 3rd, 2009, 04:09 PM
S.O.S

Hi folks, i'm having major trouble here.

Let me explain the situation:

We are working on a web-based project. So, i got assigned as the lead programmer and i'm in charge of making the technical decisions. Right now we are using JSF in a 3 Tier architecture.
BUT, and this is a big but, our project manager dont even know what java is, and he has only worked with oracle forms before. Somehow, he designed the data base and we programmers now have this -legacy- database to work with.

At first, we though of building our specially made persistence layer, but now it just seems to be non-viable.

SO, we are looking for persistence frameworks.

I've found this page:

http://java-source.net/open-source/persistence

We really need something flexible, because the databased is really something we call "legacy" =(. Any suggestions??

hoboy
July 3rd, 2009, 04:38 PM
Well you can use https://www.hibernate.org/
it is really great.
it has plugging for eclipse and many other ide.

piousp
July 3rd, 2009, 04:44 PM
Ok, nice! Downloading it right now. Thanks for the suggestion!

hoboy
July 3rd, 2009, 04:48 PM
Ok, nice! Downloading it right now. Thanks for the suggestion!

I has great doc of how to hook on db then generate the xml and the java file
http://docs.jboss.org/hibernate/stable/core/reference/en/html_single/

piousp
July 3rd, 2009, 04:54 PM
I has great doc of how to hook on db then generate the xml and the java file
http://docs.jboss.org/hibernate/stable/core/reference/en/html_single/

Woah, its huge! :lolflag: But thanks!

hoboy
July 3rd, 2009, 05:09 PM
Woah, its huge! :lolflag: But thanks!

well you will onluy use hibernate.jar in your classpath.
you can also use

Hibernate Tools for Eclipse and Ant

https://www.hibernate.org/255.html
so it actually very simple to use.
and the doc is very user friendly

CptPicard
July 3rd, 2009, 05:25 PM
Yeah, Hibernate seconded. It really allows you to map very flexibly, even when the database schema comes from some other source. The only downside is that the more complex mappings really have a learning curve, but I guess you can't have everything... you may want to read a good book on the subject, something like "Java Persistence with Hibernate".

piousp
July 3rd, 2009, 06:30 PM
Yeah, Hibernate seconded. It really allows you to map very flexibly, even when the database schema comes from some other source. The only downside is that the more complex mappings really have a learning curve, but I guess you can't have everything... you may want to read a good book on the subject, something like "Java Persistence with Hibernate".

Yeah, i'm reading some tutorials right now. The learning curve its acceptable for me, specially compared to doing manual mapping of that beast.