-
Apr 25th, 2011, 07:27 AM
#1
Schema Change - Generated Roo App
Hi,
I generated Roo MVC app using database reverse engneer.
Now i want to point to different schema instead of generated one.
If I change all the schema details in databse.properties file, its not working throwing exception "table doesn't exists".
Is there any way to change database schema without touching the generated roo code???
Thanks,
-
Apr 25th, 2011, 06:03 PM
#2
Your reverse-engineered entities have the table name in the @RooEntity annotation and would explain your issue if the new schema does have all of the same tables.
-
Apr 25th, 2011, 11:22 PM
#3
if the schema name is different, the i should change schema name in each and every java file.
I have same table structure in both schema.
eg: current schema name is META
new schema name is METADATA
if i want to point to new schema then what should i do?????
-
Apr 26th, 2011, 02:23 AM
#4
You can re-run the database reverse engineer command using the new schema name. If your tables have exactly the same names as the previous schema, then your entities should be updated. Or as you suggest, manually change the schema names in your entities.
Last edited by Alan Stewart; Apr 26th, 2011 at 04:09 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules