• Post Reply Bookmark Topic Watch Topic
  • New Topic

@SQLInsert(CreateUpdateDelete operations) statement in Hibernate  RSS feed

 
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: 20946
81
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
Boost this thread!