• Post Reply Bookmark Topic Watch Topic
  • New Topic

@SQLInsert(CreateUpdateDelete operations) statement in Hibernate

 
aydeniz kirmizi
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everybody,

I hope I am posting in the correct place.

I have been looking into customizing/overriding the CreateUpdateDelete operations created by Hibernate.



is there a way to dynamically populate the sql and use it in the statement?

eg:





Thanks a lot



 
Rob Spoor
Sheriff
Posts: 20831
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bluntly said, no. Annotations can only contain compile time constants - Strings, primitives, enum constants and other annotations. Anything dynamic is simply not possible in annotations.
 
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!