Aslak Hellesøy wrote:
Hi Joel,

Was this "modulers" package intentional? This looks like a sample to me.
Currently we keep all samples under xdoclet/samples/src/java/... I suggest
you move these sources under there, e.g. in a test.hibernate package. Please
update the xdoclet/samples/build.xml too.
Fine, thanks for the pointers. I will reorganize these tomorrow. Right now I am on the way out the door to dinner with my lovely wife :-)

- joel
FYI the code under xdoclet/samples is somewhat a mix between samples and a
test suite. We don't have a proper JUnit test suite, but building the
samples is better than nothing. This will become more organised in XDoclet
2, so if anybody has ideas, just yell.

Cheers,
Aslak

  
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Joel
Rosi-Schwatz
Sent: 10. desember 2002 18:48
To: [EMAIL PROTECTED]
Subject: [Xdoclet-devel] CVS:
xdoclet/modules/hibernate/src/xdoclet/modulers/cirrus/hibernate/test
OrderItems.java,NONE,1.1 OrderTypeRefValue.java,NONE,1.1
Order.java,NONE,1.1 BaseReferenceValue.java,NONE,1.1
ItemTypeRefValue.java,NONE,1.1 OrderItems2.java,NONE,1.


Update of
/cvsroot/xdoclet/xdoclet/modules/hibernate/src/xdoclet/modulers/ci
rrus/hibernate/test
In directory
sc8-pr-cvs1:/tmp/cvs-serv31354/modules/hibernate/src/xdoclet/modul
ers/cirrus/hibernate/test

Added Files:
	OrderItems.java OrderTypeRefValue.java Order.java
	BaseReferenceValue.java ItemTypeRefValue.java OrderItems2.java
Log Message:
Refactor of package structure to the XDoclet standard.

--- NEW FILE: OrderItems.java ---
/*
 * Copyright (c) 2001, 2002 The XDoclet team
 * All rights reserved.
 */
package xdoclet.modulers.cirrus.hibernate.test;

/**
 * Order Items Sample
 *
 * @author                        sguimont
 * @created                       06 December 2002
 * @hibernate:composite-element
 */
public class OrderItems
{
    //~ Instance variables
·····················································

    private long    id;
    private long    number;

    /**
     * Returns the id.
     *
     * @return               long
     * @hibernate.property
     */
    public long getId()
    {
        return id;
    }

    /**
     * Returns the number.
     *
     * @return               long
     * @hibernate.property   column="NMBR"
     */
    public long getNumber()
    {
        return number;
    }

    //~ Methods
································································

    /**
     * Sets the id.
     *
     * @param id  The id to set
     */
    public void setId(long id)
    {
        this.id = id;
    }

    /**
     * Sets the number.
     *
     * @param number  The number to set
     */
    public void setNumber(long number)
    {
        this.number = number;
    }
}

--- NEW FILE: OrderTypeRefValue.java ---
/*
 * Copyright (c) 2001, 2002 The XDoclet team
 * All rights reserved.
 */
package xdoclet.modulers.cirrus.hibernate.test;

/**
 * Order Type Sample
 *
 * @author               sguimont
 * @created              06 December 2002
 * @hibernate.subclass   discriminator-value="ORDER_TYPE"
 */
public class OrderTypeRefValue extends BaseReferenceValue
{
}

--- NEW FILE: Order.java ---
/*
 * Copyright (c) 2001, 2002 The XDoclet team
 * All rights reserved.
 */
package xdoclet.modulers.cirrus.hibernate.test;

import java.util.Collections;
import java.util.Date;
import java.util.Set;

/**
 * Order Sample
 *
 * @author                sguimont
 * @created               06 December 2002
 * @hibernate.class       table="TB_ORDER"
 * @hibernate.jcs-cache   usage="read-write"
 * @hibernate.query       name="query1" query="select a from b
for pleasure 1"
 * @hibernate.query       name="query2" query="select a from b
for pleasure 2"
 */
public class Order
{
    private Date    created;
    private String  orderNumber;
    private long    id;
    private double  total;
    private OrderTypeRefValue orderType;
    private int     version;
    private Set     items = Collections.EMPTY_SET;
    private OrderItems2 items2;

    /**
     * Returns the created.
     *
     * @return               Date
     * @hibernate.property   column="DT_CREATED"
     */
    public Date getCreated()
    {
        return created;
    }

    /**
     * Returns the id.
     *
     * @return         long
     * @hibernate.id   column="ID" generator-class="vm.long"
     */
    public long getId()
    {
        return id;
    }

    /**
     * Returns the orderNumber.
     *
     * @return               String
     * @hibernate.property   column="ORDER_NUMBER"
     */
    public String getOrderNumber()
    {
        return orderNumber;
    }

    /**
     * Returns the total.
     *
     * @return               double
     * @hibernate.property   column="TOTAL"
     */
    public double getTotal()
    {
        return total;
    }

    /**
     * Returns the orderType.
     *
     * @return                  OrderTypeRefValue
     * @hibernate.many-to-one   column="ORDER_TYPE_CD" cascade="none"
     */
    public OrderTypeRefValue getOrderType()
    {
        return orderType;
    }

    /**
     * Returns the version.
     *
     * @return              int
     * @hibernate.version   column="VER"
     */
    public int getVersion()
    {
        return version;
    }

    /**
     * Returns the items.
     *
     * @return                                   Set
     * @hibernate.set                            role="items"
table="TB_ORDER_ITEM"
     * @hibernate.collection-key                 column="ORDER_ID"
     * @hibernate.collection-composite-element
class="xdoclet.modules.cirrus.hibernate.test.OrderItems"
     */
    public Set getItems()
    {
        return items;
    }

    /**
     * Returns the items.
     *
     * @return                Set
     * @hibernate.component
class="xdoclet.modules.cirrus.hibernate.test.OrderItems2"
     */
    public OrderItems2 getOrderItems2()
    {
        return items2;
    }

    /**
     * Sets the created.
     *
     * @param created  The created to set
     */
    public void setCreated(Date created)
    {
        this.created = created;
    }

    /**
     * Sets the id.
     *
     * @param id  The id to set
     */
    public void setId(long id)
    {
        this.id = id;
    }

    /**
     * Sets the orderNumber.
     *
     * @param orderNumber  The orderNumber to set
     */
    public void setOrderNumber(String orderNumber)
    {
        this.orderNumber = orderNumber;
    }

    /**
     * Sets the total.
     *
     * @param total  The total to set
     */
    public void setTotal(double total)
    {
        this.total = total;
    }

    /**
     * Sets the orderType.
     *
     * @param orderType  The orderType to set
     */
    public void setOrderType(OrderTypeRefValue orderType)
    {
        this.orderType = orderType;
    }

    /**
     * Sets the version.
     *
     * @param version  The version to set
     */
    public void setVersion(int version)
    {
        this.version = version;
    }

    public void setOrderItems2(OrderItems2 items2)
    {
        this.items2 = items2;
    }

    /**
     * Sets the items.
     *
     * @param items  The items to set
     */
    public void setItems(Set items)
    {
        this.items = items;
    }
}

--- NEW FILE: BaseReferenceValue.java ---
/*
 * Copyright (c) 2001, 2002 The XDoclet team
 * All rights reserved.
 */
package xdoclet.modulers.cirrus.hibernate.test;

/**
 * Base Reference Value Sample
 *
 * @author                    sguimont
 * @created                   06 December 2002
 * @hibernate.class           table="TB_REF_VALUE"
 * @hibernate.discriminator   column="TYPE"
 */
public class BaseReferenceValue
{
    //~ Instance variables
·····················································

    private String  code;
    private String  description;

    /**
     * Returns the code.
     *
     * @return         String
     * @hibernate.id   column="CD" length="5" generator-class="assigned"
     */
    public String getCode()
    {
        return code;
    }

    /**
     * Returns the description.
     *
     * @return               String
     * @hibernate.property   column="DESCRIPTION"
     */
    public String getDescription()
    {
        return description;
    }

    //~ Methods
································································

    /**
     * Sets the code.
     *
     * @param code  The code to set
     */
    public void setCode(String code)
    {
        this.code = code;
    }

    /**
     * Sets the description.
     *
     * @param description  The description to set
     */
    public void setDescription(String description)
    {
        this.description = description;
    }
}

--- NEW FILE: ItemTypeRefValue.java ---
/*
 * Copyright (c) 2001, 2002 The XDoclet team
 * All rights reserved.
 */
package xdoclet.modulers.cirrus.hibernate.test;

/**
 * Order Type Sample
 *
 * @author               sguimont
 * @created              06 December 2002
 * @hibernate.subclass   discriminator-value="ITEM_TYPE"
 */
public class ItemTypeRefValue
     extends BaseReferenceValue
{
    //~ Instance variables
·····················································

    private Integer category;

    /**
     * Returns the category.
     *
     * @return               Integer
     * @hibernate.property   column="CATEG"
     */
    public Integer getCategory()
    {
        return category;
    }

    //~ Methods
································································

    /**
     * Sets the category.
     *
     * @param category  The category to set
     */
    public void setCategory(Integer category)
    {
        this.category = category;
    }
}

--- NEW FILE: OrderItems2.java ---
/*
 * Copyright (c) 2001, 2002 The XDoclet team
 * All rights reserved.
 */
package xdoclet.modulers.cirrus.hibernate.test;

/**
 * Order Items Sample
 *
 * @author                        sguimont
 * @created                       06 December 2002
 * @hibernate:composite-element
 */
public class OrderItems2
{
    //~ Instance variables
·····················································

    private long    number;

    /**
     * Returns the number.
     *
     * @return               long
     * @hibernate.property   column="NMBR2"
     */
    public long getNumber()
    {
        return number;
    }

    //~ Methods
································································

    /**
     * Sets the number.
     *
     * @param number  The number to set
     */
    public void setNumber(long number)
    {
        this.number = number;
    }
}



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
    



  


Reply via email to