You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Michael Dick (JIRA)" <ji...@apache.org> on 2007/09/24 18:26:50 UTC
[jira] Closed: (OPENJPA-382) Overriding column names for Byte[]
attributes causes exception.
[ https://issues.apache.org/jira/browse/OPENJPA-382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Dick closed OPENJPA-382.
--------------------------------
Resolution: Fixed
> Overriding column names for Byte[] attributes causes exception.
> ---------------------------------------------------------------
>
> Key: OPENJPA-382
> URL: https://issues.apache.org/jira/browse/OPENJPA-382
> Project: OpenJPA
> Issue Type: Bug
> Reporter: Michael Dick
> Fix For: 1.0.1, 1.1.0
>
>
> If an entity has an attribute of type Byte array and the column name is overridden in xml the following error will occur.
> <openjpa-1.0.0-SNAPSHOT-r420667:566855 fatal user error>
> org.apache.openjpa.persistence.ArgumentException: You have supplied columns for
> "org.apache.openjpa.persistence.xml.XmlOverrideEntity.picture<element:class java.lang.Byte>", but this mapping cannot have columns in this context.
> Code snippets follow :
> public class XmlOverrideEntity {
> <snip>
> @Column(name="PICTURE")
> @Lob
> private Byte[] picture;
> <snip>
> }
> // orm.xml
> <entity name="XmlOverride" class="XmlOverrideEntity">
> <attributes>
> <basic name="name" optional="true"></basic>
> <basic name="description" optional="false"></basic>
> <basic name="picture" fetch="EAGER">
> <column name="pic_xml"/>
> <lob/>
> </basic>
> </attributes>
> </entity>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.