[
https://issues.apache.org/jira/browse/OPENJPA-2589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Romain Manni-Bucau updated OPENJPA-2589:
----------------------------------------
Attachment:
OPENJPA-2589_supporting-string-as-externalizerfactory-type-and-ensuring-it-is-1-1-in-db.patch
> when using externalizer/factory type of the column could be affined
> -------------------------------------------------------------------
>
> Key: OPENJPA-2589
> URL: https://issues.apache.org/jira/browse/OPENJPA-2589
> Project: OpenJPA
> Issue Type: Improvement
> Reporter: Romain Manni-Bucau
> Attachments:
> OPENJPA-2589_supporting-string-as-externalizerfactory-type-and-ensuring-it-is-1-1-in-db.patch
>
>
> If I do:
> {code}
> @Externalizer("com.factory.SuperJsonSerializer.toStringFromSuperObject")
> @Factory("com.factory.SuperJsonSerializer.fromStringToSuperObject")
> @Column(name="test")
> private SuperObject object;
> {code}
> Then we can identify introspecting externalizer/factory that the column type
> is actually String and not SuperObject. It then means we can switch the type
> of the object to String and avoid java serialization which will keep the
> database "clean"
> side note: this is sthg to keep in mind for JPA 2.1 converters as well
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)