-1

Is there any jpa annotation for mysql SHA2. I need to create a field in ebean which should use SHA2 through annotation.

Thanks.

Robin
  • 533
  • 2
  • 5
  • 16

1 Answers1

0

"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.

dimitrisli
  • 20,895
  • 12
  • 59
  • 63