Update of 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/test/java/org/xdoclet/plugin/hibernate/properties
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18657/src/test/java/org/xdoclet/plugin/hibernate/properties

Added Files:
        Properties.hbm.xml Properties.java Simple.java 
Log Message:
(XDP-47) Hibernate3 support merged into trunk

--- NEW FILE: Properties.java ---
/*
 * Copyright (c) 2003
 * XDoclet Team
 * All rights reserved.
 */
package org.xdoclet.plugin.hibernate.properties;

import java.util.Date;

/**
 * Test properties tag
 *
 * @author Anatol Pomozov
 * @hibernate.class table="properties_table"
 * @hibernate.properties name="properties1" unique="false" update="false" 
insert="false" optimistic-lock="true" node="node"
 * @hibernate.properties name="properties2" update="false" insert="false"
 */
public class Properties {
    private Boolean available;
    private Date changedOn;
    private Date createdOn;
    private Long id;
    private Simple oneSide;
    private String privateName;
    private String publicName;
    private String resource;

    public void setAvailable(Boolean available) {
        this.available = available;
    }

    /**
     * @hibernate.properties name="properties2"
     * @hibernate.property
     */
    public Boolean getAvailable() {
        return available;
    }

    public void setChangedOn(Date changedOn) {
        this.changedOn = changedOn;
    }

    /**
     * @hibernate.property
     */
    public Date getChangedOn() {
        return changedOn;
    }

    public void setCreatedOn(Date createdOn) {
        this.createdOn = createdOn;
    }

    /**
     * @hibernate.property
     */
    public Date getCreatedOn() {
        return createdOn;
    }

    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @hibernate.id type="glarch" generator-class="glem"
     */
    public Long getId() {
        return id;
    }

    public void setOneSide(Simple oneSide) {
        this.oneSide = oneSide;
    }

    /**
     * @hibernate.properties name="properties1"
     * @hibernate.many-to-one class="com.infodesire.infobit.dao.AclImpl"
     * @hibernate.column name="one"
     * @hibernate.column name="two"
     */
    public Simple getOneSide() {
        return oneSide;
    }

    public void setPrivateName(String privateName) {
        this.privateName = privateName;
    }

    /**
     * @hibernate.properties name="properties1"
     * @hibernate.property
     */
    public String getPrivateName() {
        return privateName;
    }

    public void setPublicName(String publicName) {
        this.publicName = publicName;
    }

    /**
     * @hibernate.properties name="properties1"
     * @hibernate.property
     */
    public String getPublicName() {
        return publicName;
    }

    public void setResource(String resource) {
        this.resource = resource;
    }

    /**
     * @hibernate.properties name="properties2"
     * @hibernate.property
     */
    public String getResource() {
        return resource;
    }
}
--- NEW FILE: Properties.hbm.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" 
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd";>
<hibernate-mapping default-cascade="none" auto-import="true">
    <class name="org.xdoclet.plugin.hibernate.properties.Properties" 
table="properties_table">
        <id name="id" type="glarch">
            <generator class="glem"/>
        </id>
        <properties name="properties1" unique="false" update="false" 
insert="false" optimistic-lock="true" node="node">
            <many-to-one name="oneSide" 
class="com.infodesire.infobit.dao.AclImpl">
                <column name="one"/>
                <column name="two"/>
            </many-to-one>
            <property name="privateName"/>
            <property name="publicName"/>
        </properties>
        <properties name="properties2" update="false" insert="false">
            <property name="available"/>
            <property name="resource"/>
        </properties>
        <property name="changedOn"/>
        <property name="createdOn"/>
    </class>
</hibernate-mapping>

--- NEW FILE: Simple.java ---
/*
 * Copyright (c) 2003
 * XDoclet Team
 * All rights reserved.
 */
package org.xdoclet.plugin.hibernate.properties;

/**
 * @author Anatol Pomozov
 */
public class Simple {
    private String simpleId;

    public void setSimpleId(String simpleId) {
        this.simpleId = simpleId;
    }

    public String getSimpleId() {
        return simpleId;
    }
}


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits

Reply via email to