FAQ
[ https://issues.apache.org/cayenne/browse/CAY-1097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Loiko Dima updated CAY-1097:
----------------------------

Attachment: subclass
Attribute types are not generated for primitive ints
----------------------------------------------------

Key: CAY-1097
URL: https://issues.apache.org/cayenne/browse/CAY-1097
Project: Cayenne
Issue Type: Bug
Components: Cayenne Core Library, CayenneModeler GUI
Affects Versions: 3.0
Environment: 3.0M4, class generation from CayenneModeler
Reporter: Andrus Adamchik
Assignee: Andrus Adamchik
Fix For: 3.0

Attachments: subclass


Not sure if this happens with cgen, but when generating classes from CayenneModeler, primitive int (and other primitives?) attributes result in broken code. This was initially described here:
http://markmail.org/message/giz4mobirutx3ita
The generated code looks like this:
public void setId(int id) {
writeProperty("id", id);
}
public $classGen.formatJavaType(${attr.Type}) getId() {
Object value = readProperty("id");
return (value != null) ? (Integer) value : 0;
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Search Discussions

  • Anonymous at Aug 27, 2008 at 3:44 pm
    [ https://issues.apache.org/cayenne/browse/CAY-1097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Loiko Dima updated CAY-1097:
    ----------------------------

    Attachment: singleclass
    Attribute types are not generated for primitive ints
    ----------------------------------------------------

    Key: CAY-1097
    URL: https://issues.apache.org/cayenne/browse/CAY-1097
    Project: Cayenne
    Issue Type: Bug
    Components: Cayenne Core Library, CayenneModeler GUI
    Affects Versions: 3.0
    Environment: 3.0M4, class generation from CayenneModeler
    Reporter: Andrus Adamchik
    Assignee: Andrus Adamchik
    Fix For: 3.0

    Attachments: importUtils, singleclass, subclass


    Not sure if this happens with cgen, but when generating classes from CayenneModeler, primitive int (and other primitives?) attributes result in broken code. This was initially described here:
    http://markmail.org/message/giz4mobirutx3ita
    The generated code looks like this:
    public void setId(int id) {
    writeProperty("id", id);
    }
    public $classGen.formatJavaType(${attr.Type}) getId() {
    Object value = readProperty("id");
    return (value != null) ? (Integer) value : 0;
    }
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Anonymous at Aug 27, 2008 at 3:45 pm
    [ https://issues.apache.org/cayenne/browse/CAY-1097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Loiko Dima updated CAY-1097:
    ----------------------------

    Attachment: importUtils
    Attribute types are not generated for primitive ints
    ----------------------------------------------------

    Key: CAY-1097
    URL: https://issues.apache.org/cayenne/browse/CAY-1097
    Project: Cayenne
    Issue Type: Bug
    Components: Cayenne Core Library, CayenneModeler GUI
    Affects Versions: 3.0
    Environment: 3.0M4, class generation from CayenneModeler
    Reporter: Andrus Adamchik
    Assignee: Andrus Adamchik
    Fix For: 3.0

    Attachments: importUtils, singleclass, subclass


    Not sure if this happens with cgen, but when generating classes from CayenneModeler, primitive int (and other primitives?) attributes result in broken code. This was initially described here:
    http://markmail.org/message/giz4mobirutx3ita
    The generated code looks like this:
    public void setId(int id) {
    writeProperty("id", id);
    }
    public $classGen.formatJavaType(${attr.Type}) getId() {
    Object value = readProperty("id");
    return (value != null) ? (Integer) value : 0;
    }
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Anonymous at Aug 28, 2008 at 1:48 pm
    [ https://issues.apache.org/cayenne/browse/CAY-1097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Loiko Dima updated CAY-1097:
    ----------------------------

    Attachment: ClassGenerationActionTest
    Attribute types are not generated for primitive ints
    ----------------------------------------------------

    Key: CAY-1097
    URL: https://issues.apache.org/cayenne/browse/CAY-1097
    Project: Cayenne
    Issue Type: Bug
    Components: Cayenne Core Library, CayenneModeler GUI
    Affects Versions: 3.0
    Environment: 3.0M4, class generation from CayenneModeler
    Reporter: Andrus Adamchik
    Assignee: Andrus Adamchik
    Fix For: 3.0

    Attachments: ClassGenerationActionTest, importUtils, singleclass, subclass


    Not sure if this happens with cgen, but when generating classes from CayenneModeler, primitive int (and other primitives?) attributes result in broken code. This was initially described here:
    http://markmail.org/message/giz4mobirutx3ita
    The generated code looks like this:
    public void setId(int id) {
    writeProperty("id", id);
    }
    public $classGen.formatJavaType(${attr.Type}) getId() {
    Object value = readProperty("id");
    return (value != null) ? (Integer) value : 0;
    }
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Anonymous at Aug 28, 2008 at 1:49 pm
    [ https://issues.apache.org/cayenne/browse/CAY-1097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Loiko Dima updated CAY-1097:
    ----------------------------

    Attachment: ImportUtilsTest
    Attribute types are not generated for primitive ints
    ----------------------------------------------------

    Key: CAY-1097
    URL: https://issues.apache.org/cayenne/browse/CAY-1097
    Project: Cayenne
    Issue Type: Bug
    Components: Cayenne Core Library, CayenneModeler GUI
    Affects Versions: 3.0
    Environment: 3.0M4, class generation from CayenneModeler
    Reporter: Andrus Adamchik
    Assignee: Andrus Adamchik
    Fix For: 3.0

    Attachments: ClassGenerationActionTest, importUtils, ImportUtilsTest, singleclass, subclass


    Not sure if this happens with cgen, but when generating classes from CayenneModeler, primitive int (and other primitives?) attributes result in broken code. This was initially described here:
    http://markmail.org/message/giz4mobirutx3ita
    The generated code looks like this:
    public void setId(int id) {
    writeProperty("id", id);
    }
    public $classGen.formatJavaType(${attr.Type}) getId() {
    Object value = readProperty("id");
    return (value != null) ? (Integer) value : 0;
    }
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Anonymous at Aug 29, 2008 at 8:08 am
    [ https://issues.apache.org/cayenne/browse/CAY-1097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Loiko Dima updated CAY-1097:
    ----------------------------

    Attachment: ClassGenerationActionTest.txt
    Attribute types are not generated for primitive ints
    ----------------------------------------------------

    Key: CAY-1097
    URL: https://issues.apache.org/cayenne/browse/CAY-1097
    Project: Cayenne
    Issue Type: Bug
    Components: Cayenne Core Library, CayenneModeler GUI
    Affects Versions: 3.0
    Environment: 3.0M4, class generation from CayenneModeler
    Reporter: Andrus Adamchik
    Assignee: Andrus Adamchik
    Fix For: 3.0

    Attachments: ClassGenerationActionTest.txt, importUtils, ImportUtilsTest, singleclass, subclass


    Not sure if this happens with cgen, but when generating classes from CayenneModeler, primitive int (and other primitives?) attributes result in broken code. This was initially described here:
    http://markmail.org/message/giz4mobirutx3ita
    The generated code looks like this:
    public void setId(int id) {
    writeProperty("id", id);
    }
    public $classGen.formatJavaType(${attr.Type}) getId() {
    Object value = readProperty("id");
    return (value != null) ? (Integer) value : 0;
    }
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Anonymous at Aug 29, 2008 at 8:08 am
    [ https://issues.apache.org/cayenne/browse/CAY-1097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Andrus Adamchik updated CAY-1097:
    ---------------------------------

    Attachment: (was: ClassGenerationActionTest)
    Attribute types are not generated for primitive ints
    ----------------------------------------------------

    Key: CAY-1097
    URL: https://issues.apache.org/cayenne/browse/CAY-1097
    Project: Cayenne
    Issue Type: Bug
    Components: Cayenne Core Library, CayenneModeler GUI
    Affects Versions: 3.0
    Environment: 3.0M4, class generation from CayenneModeler
    Reporter: Andrus Adamchik
    Assignee: Andrus Adamchik
    Fix For: 3.0

    Attachments: ClassGenerationActionTest.txt, importUtils, ImportUtilsTest, singleclass, subclass


    Not sure if this happens with cgen, but when generating classes from CayenneModeler, primitive int (and other primitives?) attributes result in broken code. This was initially described here:
    http://markmail.org/message/giz4mobirutx3ita
    The generated code looks like this:
    public void setId(int id) {
    writeProperty("id", id);
    }
    public $classGen.formatJavaType(${attr.Type}) getId() {
    Object value = readProperty("id");
    return (value != null) ? (Integer) value : 0;
    }
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Anonymous at Aug 29, 2008 at 8:25 am
    [ https://issues.apache.org/cayenne/browse/CAY-1097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Andrus Adamchik closed CAY-1097.
    --------------------------------

    Resolution: Fixed
    Attribute types are not generated for primitive ints
    ----------------------------------------------------

    Key: CAY-1097
    URL: https://issues.apache.org/cayenne/browse/CAY-1097
    Project: Cayenne
    Issue Type: Bug
    Components: Cayenne Core Library, CayenneModeler GUI
    Affects Versions: 3.0
    Environment: 3.0M4, class generation from CayenneModeler
    Reporter: Andrus Adamchik
    Assignee: Andrus Adamchik
    Fix For: 3.0

    Attachments: ClassGenerationActionTest.txt, importUtils, ImportUtilsTest, singleclass, subclass


    Not sure if this happens with cgen, but when generating classes from CayenneModeler, primitive int (and other primitives?) attributes result in broken code. This was initially described here:
    http://markmail.org/message/giz4mobirutx3ita
    The generated code looks like this:
    public void setId(int id) {
    writeProperty("id", id);
    }
    public $classGen.formatJavaType(${attr.Type}) getId() {
    Object value = readProperty("id");
    return (value != null) ? (Integer) value : 0;
    }
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriescayenne
postedAug 27, '08 at 3:05p
activeAug 29, '08 at 8:25a
posts8
users1
websitecayenne.apache.org

1 user in discussion

Anonymous: 8 posts

People

Translate

site design / logo © 2022 Grokbase