Skip to content
Browse files

aerogear-46 added unique table name based on artifactId

  • Loading branch information...
1 parent 70dff38 commit 28496802f91284055298c8c2519c7507ecc30327 @balunasj balunasj committed Jan 5, 2012
View
2 jboss-html5-mobile-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
@@ -32,7 +32,7 @@
<include>**/*.css</include>
</includes>
</fileSet>
- <fileSet encoding="UTF-8">
+ <fileSet filtered="true" encoding="UTF-8">
<directory>src/main/resources</directory>
<includes>
<include>**/*.xml</include>
View
2 ...5-mobile-archetype/src/main/resources/archetype-resources/src/main/java/model/Member.java
@@ -22,7 +22,7 @@
@Entity
@XmlRootElement
-@Table(uniqueConstraints = @UniqueConstraint(columnNames = "email"))
+@Table(name="Member${artifactId}", uniqueConstraints = @UniqueConstraint(columnNames = "email"))
public class Member implements Serializable {
/** Default value included to remove warning. Remove or modify at will. **/
private static final long serialVersionUID = 1L;
View
2 ...ml5-mobile-archetype/src/main/resources/archetype-resources/src/main/resources/import.sql
@@ -1,2 +1,2 @@
-- You can use this file to load seed data into the database using SQL statements
-insert into Member (id, name, email, phone_number) values (0, 'John Smith', 'john.smith@mailinator.com', '2125551212')
+insert into Member${artifactId} (id, name, email, phone_number) values (0, 'John Smith', 'john.smith@mailinator.com', '2125551212')

0 comments on commit 2849680

Please sign in to comment.
Something went wrong with that request. Please try again.