• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to stop inserting in table defined in @SecondaryTable

 
Ram Suryanshi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am using the @SecondaryTable annotation in my class to get the data from the other table also in relation to primary one.

Now in my application i want that when i click Update button , it should only hit the primary table not the table defined in @SecondaryTable annotation.

Means i dont want to hit the table defines in SecodaryTable annotation.

Can you please tell me that how to sto that.

Thanks
Ram
 
Shailesh Kini
Ranch Hand
Posts: 153
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ram,

You should be able to do that by setting "update=false" available with the @Column annotation for the columns of your secondary table.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic