Is there any jpa annotation for mysql SHA2. I need to create a field in ebean which should use SHA2 through annotation.
Thanks.
"as like in mysql"
I pressume you are referring to some MySQL native function/proc that helps with hashing/encrypting/decrypting operations.
Take a look at this example tutorial that is explaining how you can use @ColumnTransformer to invoke native DB operation such as the one you want to do.
1.4m articles
1.4m replys
5 comments
56.9k users