Using Java Persistence API with JSC/VWP
In Java BluePrints for Java EE 5, Sun is promoting Java Persistence API (JPA) for object persistence. However, in all the tutorials and documentation on JSC / Visual Web Pack, they are using direct JDBC without JPA. SUN, please update the tutorials and documentation to reflect your own new specifications for Java EE 5.
[327 byte] By [
Sabira] at [2007-11-27 2:01:47]

# 1
I found an article on Oracle's web site - obviously it uses Oracle's products (as opposed to JSC). SUN - Its about time to catch up :-)
Tutorial: Build a Web Application (JSF) Using JPA:
http://www.oracle.com/technology/products/ias/toplink/jpa/tutorials/jsf-jpa-tut orial.html
Message was edited by:
Sabir
# 2
Hi Sabir,
it is an interesting suggestion that you made, i think the need is a new netbeans module to assist developer to use jpa and hibernate like the eclipse plugins (middlegen, hibernate synchronizer) and eclipse jpa plugin to be prepared by oracle . not a simple tutorial with a copy of dozen hibernate jars...
and i hope if ever sun do it, it is not based on read of metadata info from db to choose the type of data, but offer the possibility to choose the java corresponding type like in middlegen
# 3
I am a bit surprised that SUN team has provided tutorials/blogs/docs on non-standard APIs/frameworks such as Hibernate, Spring, etc. but they have not provided any help on Java EE standard for object persistence - JPA.
As I understand in Java EE web apps, user interface standard is JSF and persistence standard is JPA. So combiniing these two should be the first priority for tutorials - as opposed to Hibernate, Spring, Struts, etc. Most data driven web applications need both JSF and JPA.
Message was edited by:
Sabir
# 4
Finally there is a blog from SUN engineer on JPA and VWP. This is great, however, it uses NetBean 6.0 which is set to be released this Fall. Do we need to wait that long to use Java EE 5 features such as JPA? According to the release notes of WVP 5.5.1 (beta), it does support Jave EE 5 including EJB 3.0.
Binding Database Table to a Table Component Using JPA
http://www.winstonprakash.com/articles/netbeans/JPADataBinding.html
I can't wait to get NetBeans 6.0. Check this out:
http://www.netbeans.org/community/releases/60/