Thursday, September 24, 2009

Why Do My Gums Feel Swollen?

JSP with Hibernate JPA hibernate Framework datasource in netbeans

want to give an introduction and simple example of how
implement this technology, simpre
recommend reading a bit, because if we do not give pure juice
trying to implement these technologies.

http://ubuntulife.wordpress.com/2008/10/20/introduccion-a-jpa-java-persistence-api/
http://www.slideshare.net/jamslug/introduccin-a- java-persistence-api
http://www.softwarelibre.net/ibatis_hibernate_y_jpa_% C2% BFcu% C3% A1l_es_el_que_tu_necesitas
http://www.roseindia.net/software-tutorials/detail/24071
http://www.roseindia.net/tutorialsearch/?t=jpa&image.x=0&image.y=0 good

on the following link is an example
very good but with ejb
http://nachxs.wordpress.com/2009/04/28/tutorial-ejb-persistencia-y-postgresql-en-netbeans-65/

but I'm going to do without an ejb

1: In our project web

2:
3:
then next, next

4: In our new servlet

Now we have this core code

in this code we enter data into our database

-> into your servlet enter the following code

e = new Company Company ();

e.setNombre ("best");
e.setDireccion ("Santiago");
e.setRut ("1111");
persist (e) / / call our code above

remember that entities are representations of type beans
our tables in our data base

and finally to retrieve information we must take in order
Query q = em.createNativeQuery ....
this whole process is very similar to code shown in the photo
and to traverse the collection deal

List

0 comments:

Post a Comment