Announcement Announcement Module
Collapse
No announcement yet.
How do I skip schema attribute in @Table annotation? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do I skip schema attribute in @Table annotation?

    We typically like to specify the schema in database.properties file associated with the project's spring context XML. This allows us to deploy our application in environments where schema naming is controlled by the respective organization's IT team (typical of financial customers)

    While using roo-dbre to reverse engineer an Oracle schema we realized that Roo generates the following annotation in the *_Roo_Jpa_Entity class:

    Code:
    declare @type: Table2: @Table(schema = "TESTSCHEMA", name = "TABLE_2");
    Is there anyway to configure Roo not to generate the schema attribute?

    For the record, a hand written JPA Entity without the schema attribute works perfectly well and according to @Table annotation's documentation schema attribute is optional.
Working...
X