Forums Register Login

@SQLInsert(CreateUpdateDelete operations) statement in Hibernate

+Pie Number of slices to send: Send
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



+Pie Number of slices to send: Send
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.
Lasagna is spaghetti flvored cake. Just like this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1078 times.
Similar Threads
Hibernate Custom SQL - avoid Id being used
Hibernate Annotations
JPA/Hibernate entity mapping error?
How to parse hyphen in form post?
Generic way of writing @SqlInsert ?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:35:31.