ObjectDB ObjectDB

JPA 2.1 and AttributeConverter

#1

Hello :-).

Are there any plans to support JPA 2.1? I would wish to have a support for @AttributeConverter.

edit
delete
#2

The general plan is to support future versions of JPA so probably JPA 2.1 features will also be supported.

ObjectDB Support
edit
delete
#3

Thanks for the answer.

And is there current existing alternative/workaround how to implement the AttributeConverter?

I would like to make own adapter for storing property, which is File and URL class.

edit
delete
#4

You can use a transient field for the File or URL and convert it from/to byte[] or String in JPA lifecycle events methods (such as PostLoad, PrePersist, PreUpdate).

ObjectDB Support
edit
delete

Reply

To post on this website please sign in.