Commit 2fb4d6d4a83fdb001f0bcca9ebf791e5bb33478a

Authored by Cleverson Sacramento
1 parent 2547297e
Exists in master

Ajustes no arquétipo para suportar as novas configurações para deploy no

JBoss AS7
archetype/jsf-jpa/src/main/resources/archetype-resources/pom.xml
@@ -25,11 +25,14 @@ @@ -25,11 +25,14 @@
25 <artifactId>demoiselle-jpa</artifactId> 25 <artifactId>demoiselle-jpa</artifactId>
26 <scope>compile</scope> 26 <scope>compile</scope>
27 </dependency> 27 </dependency>
  28 + <!-- If you are using a JTA transaction then use this extension -->
  29 + <!--
28 <dependency> 30 <dependency>
29 <groupId>br.gov.frameworkdemoiselle</groupId> 31 <groupId>br.gov.frameworkdemoiselle</groupId>
30 <artifactId>demoiselle-jta</artifactId> 32 <artifactId>demoiselle-jta</artifactId>
31 <scope>compile</scope> 33 <scope>compile</scope>
32 </dependency> 34 </dependency>
  35 + -->
33 <dependency> 36 <dependency>
34 <groupId>org.primefaces</groupId> 37 <groupId>org.primefaces</groupId>
35 <artifactId>primefaces</artifactId> 38 <artifactId>primefaces</artifactId>
archetype/jsf-jpa/src/main/resources/archetype-resources/src/main/java/domain/Bookmark.java
  1 +import static javax.persistence.GenerationType.SEQUENCE;
  2 +
1 package ${package}.domain; 3 package ${package}.domain;
2 4
3 import java.io.Serializable; 5 import java.io.Serializable;
@@ -13,7 +15,7 @@ public class Bookmark implements Serializable { @@ -13,7 +15,7 @@ public class Bookmark implements Serializable {
13 private static final long serialVersionUID = 1L; 15 private static final long serialVersionUID = 1L;
14 16
15 @Id 17 @Id
16 - @GeneratedValue 18 + @GeneratedValue(strategy = SEQUENCE)
17 private Long id; 19 private Long id;
18 20
19 @Column 21 @Column
archetype/jsf-jpa/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml
@@ -14,7 +14,6 @@ @@ -14,7 +14,6 @@
14 <property name="hibernate.show_sql" value="true" /> 14 <property name="hibernate.show_sql" value="true" />
15 <property name="hibernate.format_sql" value="false" /> 15 <property name="hibernate.format_sql" value="false" />
16 <property name="hibernate.hbm2ddl.auto" value="create-drop" /> 16 <property name="hibernate.hbm2ddl.auto" value="create-drop" />
17 - <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" />  
18 </properties> 17 </properties>
19 </persistence-unit> 18 </persistence-unit>
20 19
@@ -29,7 +28,7 @@ @@ -29,7 +28,7 @@
29 <property name="hibernate.show_sql" value="true" /> 28 <property name="hibernate.show_sql" value="true" />
30 <property name="hibernate.format_sql" value="false" /> 29 <property name="hibernate.format_sql" value="false" />
31 <property name="hibernate.hbm2ddl.auto" value="update" /> 30 <property name="hibernate.hbm2ddl.auto" value="update" />
32 - <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" /> 31 + <property name="hibernate.transaction.jta.platform" value="org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform" />
33 </properties> 32 </properties>
34 </persistence-unit> 33 </persistence-unit>
35 --> 34 -->
@@ -45,7 +44,6 @@ @@ -45,7 +44,6 @@
45 <property name="hibernate.show_sql" value="true" /> 44 <property name="hibernate.show_sql" value="true" />
46 <property name="hibernate.format_sql" value="false" /> 45 <property name="hibernate.format_sql" value="false" />
47 <property name="hibernate.hbm2ddl.auto" value="create-drop" /> 46 <property name="hibernate.hbm2ddl.auto" value="create-drop" />
48 - <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup" />  
49 </properties> 47 </properties>
50 </persistence-unit> 48 </persistence-unit>
51 --> 49 -->
archetype/jsf-jpa/src/main/resources/archetype-resources/src/main/resources/demoiselle.properties
@@ -32,5 +32,3 @@ @@ -32,5 +32,3 @@
32 # "LICENCA.txt", junto com esse programa. Se não, acesse <http://www.gnu.org/licenses/> 32 # "LICENCA.txt", junto com esse programa. Se não, acesse <http://www.gnu.org/licenses/>
33 # ou escreva para a Fundação do Software Livre (FSF) Inc., 33 # ou escreva para a Fundação do Software Livre (FSF) Inc.,
34 # 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. 34 # 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA.
35 -  
36 -frameworkdemoiselle.transaction.class=br.gov.frameworkdemoiselle.transaction.JPATransaction