EmbeddedValue and asssociations handling
----------------------------------------
Key: HIB-110
URL: http://jira.andromda.org/browse/HIB-110
Project: Hibernate Cartridge
Type: Improvement
Versions: 3.1M1
Reporter: Borut Zagar
Assigned to: Martin West
Priority: Minor
I have the following situation:
http://foto.volja.net/zoom_image.php?lang=slo&album_id=9058&image_id=70212
AndroMDA 3.1-M1 generates all necessary code (Country.hbm.xml, Country.java,
CountryImpl.java) except there is no reference to Country class in
Address.java.
Excerpt of Person.hbm.xml, which references Address class:
.
.
.
<component name="address"
class="com.eficus.model.organization.AddressImpl">
<property name="street" type="java.lang.String">
<column name="ADDRESS_STREET" not-null="false" unique="false"
sql-type="CHARACTER VARYING(100)"/>
</property>
<property name="postCode" type="java.lang.String">
<column name="ADDRESS_POST_CODE" not-null="false" unique="false"
sql-type="CHARACTER VARYING(10)"/>
</property>
<property name="city" type="java.lang.String">
<column name="ADDRESS_CITY" not-null="false" unique="false"
sql-type="CHARACTER VARYING(50)"/>
</property>
<property name="region" type="java.lang.String">
<column name="ADDRESS_REGION" not-null="false" unique="false"
sql-type="CHARACTER VARYING(30)"/>
</property>
<many-to-one name="country"
class="com.eficus.model.organization.CountryImpl" fetch="$otherEnd.outerJoin"
foreign-key="$otherEnd.foreignKeyConstraintName">
<column name="$otherEnd.columnName" not-null="true"
sql-type="$otherEnd.sqlType"/>
</many-to-one>
</component>
.
.
.
There is many-to-one relationship to Country as it should be.
The problem is that Address.java is missing the following code:
private com.eficus.model.organization.Country country;
/**
*
*/
public com.eficus.model.organization.Country getCountry()
{
return this.country;
}
public void setCountry(com.eficus.model.organization.Country country)
{
this.country = country;
}
Why is this code missing, everything else generates ok.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.andromda.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Andromda-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-devel