rohitghatol / spring-roo-addon-typical-security

Automatically exported from code.google.com/p/spring-roo-addon-typical-security
2 stars 0 forks source link

Add on won't create the table 'user' #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download/INstall 0.1.5snapshot addon
2. --provider HIBERNATE --database POSTGRESQ
3. error:

2011-06-11 08:04:35,823 [Thread-3] ERROR 
org.hibernate.tool.hbm2ddl.SchemaExport - Unsuccessful: create table user (id 
int8 not null, activation_date timestamp, activation_key varchar(255), 
email_address varchar(255) not null unique, enabled bool, first_name 
varchar(255) not null, last_name varchar(255) not null, locked bool, password 
varchar(255) not null, version int4, primary key (id))
2011-06-11 08:04:35,823 [Thread-3] ERROR 
org.hibernate.tool.hbm2ddl.SchemaExport - ERROR: syntax error at or near "user"
  Position: 14
2011-06-11 08:04:35,961 [Thread-3] ERROR 
org.hibernate.tool.hbm2ddl.SchemaExport - Unsuccessful: alter table user_role 
add constraint FK143BF46A182C37B foreign key (user_entry) references user
2011-06-11 08:04:35,962 [Thread-3] ERROR 
org.hibernate.tool.hbm2ddl.SchemaExport - ERROR: syntax error at or near "user"
  Position: 92

What is the expected output? What do you see instead?
- creation of the table 'user'

What version of the product are you using? On what operating system?
STS 2.6.1
Spring Roo 1.1.4
TypicalSecurity addon 0.1.5snapshot

Please provide any additional information below.

Original issue reported on code.google.com by iskandar...@gmail.com on 11 Jun 2011 at 6:11

GoogleCodeExporter commented 9 years ago
Quick workaround is:
add the following in to the User class
table = "t_user" to the @RooEntity annotation

Original comment by iskandar...@gmail.com on 11 Jun 2011 at 6:21