How to declare different non-JPA annotations on embedded classes

Posted by e99y on Stack Overflow See other posts from Stack Overflow or by e99y
Published on 2010-05-31T09:02:44Z Indexed on 2010/05/31 9:02 UTC
Read the original article Hit count: 160

Filed under:
|
|
|

@Embedded public class EmbedMe { private String prop1; private String prop2; }

@Entity public class EncryptedEmbedded { @Embeddable private EmbedMe enc; }

I am current using Jasypt for encryption. Is there a way to indicate that the @Embeddable in EncryptedEmbedded will use @Type(value = "newDeclaredTypeHere") per attribute (prop1, prop2)?

Thanks in advance... ;)

© Stack Overflow or respective owner

Related posts about jpa

Related posts about embedded