Announcement Announcement Module
No announcement yet.
Disabling schema update for a signle hibernate entity Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Disabling schema update for a signle hibernate entity

    I'm using an Oracle database with a table that my application has a read-only access to. I have configured a hibernate entity class that represents the table in my application with services and everything. I need to have schema update on for my other entities, but the one table is static so I just need to access it from hibernate, not update it.

    My application works fine if I have schemaUpdate set to false. When i deploy the application when schemaupdate is set to true, I get errors because I don't have permissions to change the table.

    Is it possible to define the considered hibernate entity so, that it's not included in the schema update while the others are?

    I'm using Spring's AnnotationSessionFactoryBean with hibernate & hibernate-annotations.