You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Lucas Partridge (JIRA)" <ji...@apache.org> on 2010/10/07 14:37:30 UTC
[jira] Created: (OPENJPA-1826) Can we have a new type for ignoring
values?
Can we have a new type for ignoring values?
-------------------------------------------
Key: OPENJPA-1826
URL: https://issues.apache.org/jira/browse/OPENJPA-1826
Project: OpenJPA
Issue Type: Sub-task
Components: tooling
Affects Versions: 2.0.0
Environment: Win XP
Reporter: Lucas Partridge
When I see the type="text" attribute in a Hibernate property element I would like to be able to convert that to a <lob/> child element in OpenJPA.
For example, I would like the following line in a Hibernate hbm.xml file:
<property name="value" column="VALUE" type="text"/>
to become the following orm.xml entry:
<basic name="value">
<column name="VALUE"/>
<lob/>
</basic>
I can get <lob/> by using this in the actions for "property" in migration-actions.xml:
<promote-attr from="type" to="lob">
<map-value from="text" to=""/>
</promote-attr>
but that will only work if type's value is "text". It would be great if we could introduce a new type in migration-actions.xsd: "ignore-value". We can already ignore elements and attributes, but not values yet (unless they have particular values like the example above). Then I could do something like this:
<promote-attr from="type" to="lob">
<ignore-value/>
</promote-attr>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (OPENJPA-1826) Can we have a new type for ignoring
values?
Posted by "Pinaki Poddar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-1826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pinaki Poddar resolved OPENJPA-1826.
------------------------------------
Resolution: Fixed
Fix Version/s: 2.1.0
2.0.2
> Can we have a new type for ignoring values?
> -------------------------------------------
>
> Key: OPENJPA-1826
> URL: https://issues.apache.org/jira/browse/OPENJPA-1826
> Project: OpenJPA
> Issue Type: Sub-task
> Components: tooling
> Affects Versions: 2.0.0
> Environment: Win XP
> Reporter: Lucas Partridge
> Assignee: Pinaki Poddar
> Fix For: 2.0.2, 2.1.0
>
>
> When I see the type="text" attribute in a Hibernate property element I would like to be able to convert that to a <lob/> child element in OpenJPA.
> For example, I would like the following line in a Hibernate hbm.xml file:
> <property name="value" column="VALUE" type="text"/>
> to become the following orm.xml entry:
> <basic name="value">
> <column name="VALUE"/>
> <lob/>
> </basic>
> I can get <lob/> by using this in the actions for "property" in migration-actions.xml:
> <promote-attr from="type" to="lob">
> <map-value from="text" to=""/>
> </promote-attr>
> but that will only work if type's value is "text". It would be great if we could introduce a new type in migration-actions.xsd: "ignore-value". We can already ignore elements and attributes, but not values yet (unless they have particular values like the example above). Then I could do something like this:
> <promote-attr from="type" to="lob">
> <ignore-value/>
> </promote-attr>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (OPENJPA-1826) Can we have a new type for
ignoring values?
Posted by "Pinaki Poddar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-1826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12920753#action_12920753 ]
Pinaki Poddar commented on OPENJPA-1826:
----------------------------------------
Added new action syntax
<promote-attr from="type" to="lob" if="text"/>
Will convert
<property name="value" column="COL_VALUE" type="text"/>
to
<basic name="value">
<column name="COL_VALUE"/>
<lob/>
</basic>
> Can we have a new type for ignoring values?
> -------------------------------------------
>
> Key: OPENJPA-1826
> URL: https://issues.apache.org/jira/browse/OPENJPA-1826
> Project: OpenJPA
> Issue Type: Sub-task
> Components: tooling
> Affects Versions: 2.0.0
> Environment: Win XP
> Reporter: Lucas Partridge
> Assignee: Pinaki Poddar
> Fix For: 2.0.2, 2.1.0
>
>
> When I see the type="text" attribute in a Hibernate property element I would like to be able to convert that to a <lob/> child element in OpenJPA.
> For example, I would like the following line in a Hibernate hbm.xml file:
> <property name="value" column="VALUE" type="text"/>
> to become the following orm.xml entry:
> <basic name="value">
> <column name="VALUE"/>
> <lob/>
> </basic>
> I can get <lob/> by using this in the actions for "property" in migration-actions.xml:
> <promote-attr from="type" to="lob">
> <map-value from="text" to=""/>
> </promote-attr>
> but that will only work if type's value is "text". It would be great if we could introduce a new type in migration-actions.xsd: "ignore-value". We can already ignore elements and attributes, but not values yet (unless they have particular values like the example above). Then I could do something like this:
> <promote-attr from="type" to="lob">
> <ignore-value/>
> </promote-attr>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (OPENJPA-1826) Can we have a new type for ignoring
values?
Posted by "Pinaki Poddar (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/OPENJPA-1826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pinaki Poddar reassigned OPENJPA-1826:
--------------------------------------
Assignee: Pinaki Poddar
> Can we have a new type for ignoring values?
> -------------------------------------------
>
> Key: OPENJPA-1826
> URL: https://issues.apache.org/jira/browse/OPENJPA-1826
> Project: OpenJPA
> Issue Type: Sub-task
> Components: tooling
> Affects Versions: 2.0.0
> Environment: Win XP
> Reporter: Lucas Partridge
> Assignee: Pinaki Poddar
>
> When I see the type="text" attribute in a Hibernate property element I would like to be able to convert that to a <lob/> child element in OpenJPA.
> For example, I would like the following line in a Hibernate hbm.xml file:
> <property name="value" column="VALUE" type="text"/>
> to become the following orm.xml entry:
> <basic name="value">
> <column name="VALUE"/>
> <lob/>
> </basic>
> I can get <lob/> by using this in the actions for "property" in migration-actions.xml:
> <promote-attr from="type" to="lob">
> <map-value from="text" to=""/>
> </promote-attr>
> but that will only work if type's value is "text". It would be great if we could introduce a new type in migration-actions.xsd: "ignore-value". We can already ignore elements and attributes, but not values yet (unless they have particular values like the example above). Then I could do something like this:
> <promote-attr from="type" to="lob">
> <ignore-value/>
> </promote-attr>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.