[seasar-user-en:16] Mapping with S2dao.

Morpheus [E-MAIL ADDRESS DELETED]
Wed Apr 12 14:09:15 JST 2006


Can we map with S2dao like one-to-many.


I want to use "values" of entity class XYZ will have a map to another entity
class PQR.
and this will be a one-to-many Map.


public class XYZ {

    private static final String TABLE="Z_XYZ";
    //ID
    private String code = null;
    /** Values which belong to this definition */
    private Set values = Collections.EMPTY_SET;
}

public class PQR {

    private static final String TABLE="Z_PQR";

    /** [PK]ID */
    private Long id = null;

    /** XYZ */
    private XYZ definition = null;
}


thanks
--
Sabbir Bin Ashraf
Senior Software Developer
United IT GlobalNet (JV) Ltd.
(A Japan Bangladesh Joint Venture Company)
United House, 10 Gulshan Avenue, Dhaka-1212 , BD.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ml.seasar.org/archives/seasar-user-en/attachments/20060412/ec317875/attachment.html 


More information about the seasar-user-en mailing list