You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Erik van Oosten (JIRA)" <ib...@incubator.apache.org> on 2009/06/16 16:35:07 UTC
[jira] Created: (IBATIS-609) ibator does not support generics in
javaType attribute
ibator does not support generics in javaType attribute
------------------------------------------------------
Key: IBATIS-609
URL: https://issues.apache.org/jira/browse/IBATIS-609
Project: iBatis for Java
Issue Type: Bug
Components: Tools
Reporter: Erik van Oosten
I tried to define a Set<UserRole>, however ibator seems to mangle the javatype.
For example the following definition:
<table tableName="USER" .....>
....
<columnOverride column="ROLES" javaType="java.util.Set<com.example.UserRole>" jdbcType="NVARCHAR2"/>
</table>
Leads to the following generated code:
class User {
private com.example.UserRole> roles;
}
expected was:
class User {
private java.util.Set<com.example.UserRole> roles;
}
Tested with ibator 1.2.2-SNAPSHOT of around 2009-06-16.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (IBATIS-609) ibator does not support generics in
javaType attribute
Posted by "Jeff Butler (JIRA)" <ib...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/IBATIS-609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeff Butler closed IBATIS-609.
------------------------------
Resolution: Fixed
Fixed in SVN.
The parse was definitely incorrect. But a caution - this will not trick Ibator into doing joins for you :)
> ibator does not support generics in javaType attribute
> ------------------------------------------------------
>
> Key: IBATIS-609
> URL: https://issues.apache.org/jira/browse/IBATIS-609
> Project: iBatis for Java
> Issue Type: Bug
> Components: Tools
> Reporter: Erik van Oosten
> Assignee: Jeff Butler
>
> I tried to define a Set<UserRole>, however ibator seems to mangle the javatype.
> For example the following definition:
> <table tableName="USER" .....>
> ....
> <columnOverride column="ROLES" javaType="java.util.Set<com.example.UserRole>" jdbcType="NVARCHAR2"/>
> </table>
> Leads to the following generated code:
> class User {
> private com.example.UserRole> roles;
> }
> expected was:
> class User {
> private java.util.Set<com.example.UserRole> roles;
> }
> Tested with ibator 1.2.2-SNAPSHOT of around 2009-06-16.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (IBATIS-609) ibator does not support generics in
javaType attribute
Posted by "Erik van Oosten (JIRA)" <ib...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/IBATIS-609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12720516#action_12720516 ]
Erik van Oosten commented on IBATIS-609:
----------------------------------------
I realize that :) , I am using a TypeHandler to convert a comma separated varchar to a Set.
> ibator does not support generics in javaType attribute
> ------------------------------------------------------
>
> Key: IBATIS-609
> URL: https://issues.apache.org/jira/browse/IBATIS-609
> Project: iBatis for Java
> Issue Type: Bug
> Components: Tools
> Reporter: Erik van Oosten
> Assignee: Jeff Butler
>
> I tried to define a Set<UserRole>, however ibator seems to mangle the javatype.
> For example the following definition:
> <table tableName="USER" .....>
> ....
> <columnOverride column="ROLES" javaType="java.util.Set<com.example.UserRole>" jdbcType="NVARCHAR2"/>
> </table>
> Leads to the following generated code:
> class User {
> private com.example.UserRole> roles;
> }
> expected was:
> class User {
> private java.util.Set<com.example.UserRole> roles;
> }
> Tested with ibator 1.2.2-SNAPSHOT of around 2009-06-16.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.