You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Eric Chow <ec...@macaucabletv.com> on 2004/02/24 02:50:38 UTC

TJDO problem ???

Hello,
 
 Anybody tried TJDO with Maven ???
 
 
 I want to use Maven(xdoclet) to generate the JDO metadata. It only can
 generate the standard JDO metadat but without any TJDO spec.
 
 Maven 1.0rc1
 Maven-Xdoclet-1.2 plugin
 
 Please check my files.
 
 
 
 Eric
==========================
If you know what you are doing, 
it is not called RESEARCH!
==========================

Re: TJDO problem ???

Posted by Eric Chow <ec...@macaucabletv.com>.
The Source Files
====================

package test;
/**
 * @jdo.persistence-capable
 *    identity-type="datastore"
 *
 */
public class Person
{
  /**
   * @jdo.field
   *
   * @tjdo.field
   *  column-length="50"
   */
  String firstName;

  /**
   * @jdo.field
   *
   * @tjdo.field
   *  column-length="50"
   */
  String lastName;

  /**
   * @jdo.field
   *
   * @tjdo.field
   */
  int age = 0;

  /**
   * Default constructor required by JDO.
   */
  public Person() {}

  /**
   * Constructor.
   * @param first  First name.
   * @param last   Last name.
   * @param age    The Person's age.
   */
  public Person(String first, String last, int age)
  {
    this.firstName = first;
    this.lastName = last;
    this.age = age;
  }

  /**
   * Setter for firstName
   * @param firstName  The value to set.
   */
  public void setFirstName(String firstName)
  {
    this.firstName = firstName;
  }

  /**
   * Getter for firstName
   * @return firstName
   */
  public String getFirstName()
  {
    return this.firstName;
  }

  /**
   * Setter for lastName
   * @param lastName  The value to set.
   */
  public void setLastName(String lastName)
  {
    this.lastName = lastName;
  }

  /**
   * Getter for lastName
   * @return lastName
   */
  public String getLastName()
  {
    return this.lastName;
  }

  /**
   * Setter for age
   * @param age  The value to set.
   */
  public void setAge(int age)
  {
    this.age = age;
  }

  /**
   * Getter for age
   * @return age
   */
  public int getAge()
  {
    return this.age;
  }
}



#------------------------------------

#------------------------------------
#     project.properties
#------------------------------------
# XDoclet
#------------------------------------
# JDODoclet
#maven.xdoclet.jdodoclet.destDir=${maven.build.dir}/xdoclet/jdodoclet
maven.xdoclet.jdodoclet.destDir=${maven.build.dest}
maven.xdoclet.jdodoclet.fileset.0=true
maven.xdoclet.jdodoclet.fileset.0.include=**/Person.java

#maven.xdoclet.jdodoclet.mergeDir=src/merge

maven.xdoclet.jdodoclet.jdometadata.0=true
maven.xdoclet.jdodoclet.jdometadata.0.Generation=true
#maven.xdoclet.jdodoclet.jdometadata.0.mergeDir=src/merge

maven.xdoclet.jdodoclet.triactive.0=true
#maven.xdoclet.jdodoclet.triactive.0.Version=2.0






----- Original Message ----- 
From: "Eric Chow" <ec...@macaucabletv.com>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Tuesday, February 24, 2004 9:50 AM
Subject: TJDO problem ???


> Hello,
>
>  Anybody tried TJDO with Maven ???
>
>
>  I want to use Maven(xdoclet) to generate the JDO metadata. It only can
>  generate the standard JDO metadat but without any TJDO spec.
>
>  Maven 1.0rc1
>  Maven-Xdoclet-1.2 plugin
>
>  Please check my files.
>
>
>
>  Eric
> ==========================
> If you know what you are doing,
> it is not called RESEARCH!
> ==========================


----------------------------------------------------------------------------
----


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org