CVS: xdoclet/samples/src/java/test/hibernate30 LegacyClassWithCompositeId.java,NONE,1.1

Paul Galbraith <[email protected]>
Newsgroups gmane.comp.java.xdoclet.devel
Message-ID <[email protected]>
Update of /cvsroot/xdoclet/xdoclet/samples/src/java/test/hibernate30
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23747/samples/src/java/test/hibernate30

Added Files:
	LegacyClassWithCompositeId.java 
Log Message:
[XDT-414] Allow composite-id composed of multiple class member properties

--- NEW FILE: LegacyClassWithCompositeId.java ---
package test.hibernate30;

/**
 * @hibernate.class table="LEGACY"
 * @hibernate.composite-id element-id="comp_id"
 */
public class LegacyClassWithCompositeId {

    private int key1;
    
    private int key2;

    /**
     * @hibernate.key-property parent-element="comp_id"
     */
    public int getKey1() {
        return key1;
    }

    public void setKey1(int key1) {
        this.key1 = key1;
    }

    /**
     * @hibernate.key-many-to-one parent-element="comp_id" class="RelatedClass"
     */
    public int getKey2() {
        return key2;
    }

    public void setKey2(int key2) {
        this.key2 = key2;
    }
    
}



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.