I have the following situation:
[img]http://foto.volja.net/zoom_image.php?lang=slo&album_id=9058&image_id=70212[/img] 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? Borut _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1291#1291 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list! ------------------------------------------------------- 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-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user