Home » Support » Forum » JPA 2.1 and AttributeConverter

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.

#2

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

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
#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.

#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
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply

To post a reply and/or subscribe to update notifications - please login