Discussion:
[Xdoclet-devel] [XDoclet-JIRA] Created: (XDT-1696) how to use embedded field mapping for JDO 1.0, Kodo 3.0.4
Kodo Belner (JIRA)
2008-07-08 13:08:18 UTC
Permalink
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
Loading...