• Post Reply Bookmark Topic Watch Topic
  • New Topic

database views as a property for entity

 
srini carry
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am wondering If I can have views as a propertty to my entity with insertable and updatable equals to false , I did this it was working fine but If I delete this entity hibernate tries to delete the record from view , also I am wondering If I can tell hibernte not to create delete and create statements for this property
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hibernate associations and properties have the update and insert attributes that will do this.

Generally though views are better supported by queries or named queries.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!