Results 1 to 4 of 4

Thread: Schema Change - Generated Roo App

  1. #1

    Default 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,

  2. #2
    Join Date
    Dec 2005
    Posts
    930

    Default

    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.
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

  3. #3

    Default

    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?????

  4. #4
    Join Date
    Dec 2005
    Posts
    930

    Default

    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.
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •