how to use embedded field mapping for JDO 1.0, Kodo 3.0.4
---------------------------------------------------------

                 Key: XDT-1696
                 URL: 
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1696
             Project: XDoclet
          Issue Type: Task
          Components: JDO Module
            Reporter: Kodo Belner
            Assignee: xdoclet-devel (Use for new issues)


The following example (simplified):
/ ** .... jdo class doclet ... **/
class Person
{
      /** @jdo.field
           embedded="true" **/  
      private Address address1;
      /** @jdo.field
           embedded="true" **/
      private Address address2;
}

/ ** .... jdo class doclet ... **/
class Address
{
      private String street;
}

I want to use jdo-doclets and embed the address class in the person class, but 
I want to use different columns (not prespecified by JDO). So I have the 
specify the column name for the "street" attribute. I tried the following:

The following example (simplified):
/ ** .... jdo class doclet ... **/
class Person
{
      /** @jdo.field
           embedded="true" 
           @jdo.field name="street" column="street1"
      **/       
      private Address address1;
      /** @jdo.field
           embedded="true" 
           @jdo.field name="street" column="street2" **/
      private Address address2;
}

This change does not work. My question is how to assign for the "street" 
attribute a desired column in the person-table

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to