Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • 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
Pie
Posts: 20753
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic