From 2fb4d6d4a83fdb001f0bcca9ebf791e5bb33478a Mon Sep 17 00:00:00 2001 From: Cleverson Sacramento Date: Tue, 10 Jul 2012 11:35:09 -0300 Subject: [PATCH] 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 | 3 +++ archetype/jsf-jpa/src/main/resources/archetype-resources/src/main/java/domain/Bookmark.java | 4 +++- archetype/jsf-jpa/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml | 4 +--- archetype/jsf-jpa/src/main/resources/archetype-resources/src/main/resources/demoiselle.properties | 2 -- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/archetype/jsf-jpa/src/main/resources/archetype-resources/pom.xml b/archetype/jsf-jpa/src/main/resources/archetype-resources/pom.xml index 546a68a..9696d12 100755 --- a/archetype/jsf-jpa/src/main/resources/archetype-resources/pom.xml +++ b/archetype/jsf-jpa/src/main/resources/archetype-resources/pom.xml @@ -25,11 +25,14 @@ demoiselle-jpa compile + + org.primefaces primefaces diff --git a/archetype/jsf-jpa/src/main/resources/archetype-resources/src/main/java/domain/Bookmark.java b/archetype/jsf-jpa/src/main/resources/archetype-resources/src/main/java/domain/Bookmark.java index 469e2c0..20da091 100644 --- a/archetype/jsf-jpa/src/main/resources/archetype-resources/src/main/java/domain/Bookmark.java +++ b/archetype/jsf-jpa/src/main/resources/archetype-resources/src/main/java/domain/Bookmark.java @@ -1,3 +1,5 @@ +import static javax.persistence.GenerationType.SEQUENCE; + package ${package}.domain; import java.io.Serializable; @@ -13,7 +15,7 @@ public class Bookmark implements Serializable { private static final long serialVersionUID = 1L; @Id - @GeneratedValue + @GeneratedValue(strategy = SEQUENCE) private Long id; @Column diff --git a/archetype/jsf-jpa/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml b/archetype/jsf-jpa/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml index a481000..d581086 100644 --- a/archetype/jsf-jpa/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml +++ b/archetype/jsf-jpa/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml @@ -14,7 +14,6 @@ - @@ -29,7 +28,7 @@ - + --> @@ -45,7 +44,6 @@ - --> diff --git a/archetype/jsf-jpa/src/main/resources/archetype-resources/src/main/resources/demoiselle.properties b/archetype/jsf-jpa/src/main/resources/archetype-resources/src/main/resources/demoiselle.properties index fc74e6e..3f1fa2e 100755 --- a/archetype/jsf-jpa/src/main/resources/archetype-resources/src/main/resources/demoiselle.properties +++ b/archetype/jsf-jpa/src/main/resources/archetype-resources/src/main/resources/demoiselle.properties @@ -32,5 +32,3 @@ # "LICENCA.txt", junto com esse programa. Se não, acesse # ou escreva para a Fundação do Software Livre (FSF) Inc., # 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA. - -frameworkdemoiselle.transaction.class=br.gov.frameworkdemoiselle.transaction.JPATransaction -- libgit2 0.21.2