From seam-commits at lists.jboss.org Wed Oct 13 06:14:22 2010 Content-Type: multipart/mixed; boundary="===============0289745917705797901==" MIME-Version: 1.0 From: seam-commits at lists.jboss.org To: seam-commits at lists.jboss.org Subject: [seam-commits] Seam SVN: r13837 - modules/persistence/trunk/docs/src/main/docbook/en-US. Date: Wed, 13 Oct 2010 06:14:22 -0400 Message-ID: <201010131014.o9DAEMDg023958@svn01.web.mwc.hst.phx2.redhat.com> --===============0289745917705797901== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: swd847 Date: 2010-10-13 06:14:22 -0400 (Wed, 13 Oct 2010) New Revision: 13837 Modified: modules/persistence/trunk/docs/src/main/docbook/en-US/persistence-genera= l.xml Log: update documentation Modified: modules/persistence/trunk/docs/src/main/docbook/en-US/persistence= -general.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- modules/persistence/trunk/docs/src/main/docbook/en-US/persistence-gener= al.xml 2010-10-13 08:26:08 UTC (rev 13836) +++ modules/persistence/trunk/docs/src/main/docbook/en-US/persistence-gener= al.xml 2010-10-13 10:14:22 UTC (rev 13837) @@ -79,6 +79,54 @@ = = +
+ Getting Started + = + + To get started with Seam persistence you need to add the + seam-persistence.jar and the = + weld-extensions.jar to you deployment. If you = are in + a java SE environment you will probably also require = + seam-xml.jar as well for configuration purpose= s. The + relevant maven configuration is as follows: + + + org.jboss.seam.persistence + seam-persistence-api + ${seam.persistence.version} + + + + org.jboss.seam.persistence + seam-persistence-impl + ${seam.persistence.version} + + + + org.jboss.weld + weld-extensions + ${weld.extensions.version} + + + + org.jboss.seam.xml + seam-xml-config + ${seam.xml.version} + = +]]> = + = + + You will also need to have a JPA provider on the classpath. If yo= u are + using java EE this is taken care of for you. If not, we recommend= hibernate. + + + + org.hibernate + hibernate-core + 3.5.1-Final +]]> = +
+ =
Transaction Management = @@ -92,11 +140,24 @@
Configuration - If you are in an EE 6 environment then no configuration is nec= essary, = - simply drop the seam-persistence jar into your app and you are= ready - to go. + In order to enable declarative transaction management for mana= ged beans = + you need to list the transaction interceptor in beans.xml: + + + + org.jboss.seam.persistence.transaction.TransactionInterceptor= + +]]> = + If you are in a Java EE 6 environment then you are good to go, = + no additional configuration is required. = + + If you are not in an EE environment you may need to configure = some things with seam-xml. You may need the following entries in yo= ur beans.xml file: --===============0289745917705797901==--