Update of
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-jdo/src/test/java/org/xdoclet/plugin/jdo/inheritance
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24689
Added Files:
package.jdo.xml Book.java Product.java
Log Message:
Add initial version of JDO plugin
--- NEW FILE: Book.java ---
/*
* Copyright (c) 2003
* XDoclet Team
* All rights reserved.
*/
package org.xdoclet.plugin.jdo.inheritance;
/**
* @author Anatol Pomozov
*/
public class Book extends Product {
String author = null;
String isbn = null;
String publisher = null;
public Book(String name, String desc, double price, String author, String
isbn, String publisher) {
super(name, desc, price);
this.author = author;
this.isbn = isbn;
this.publisher = publisher;
}
}
--- NEW FILE: Product.java ---
/*
* Copyright (c) 2003
* XDoclet Team
* All rights reserved.
*/
package org.xdoclet.plugin.jdo.inheritance;
/**
* @author Anatol Pomozov
*/
public class Product {
String description = null;
String name = null;
double price = 0.0;
public Product(String name, String desc, double price) {
this.name = name;
this.description = desc;
this.price = price;
}
protected Product() {
}
}
--- NEW FILE: package.jdo.xml ---
<?xml version="1.0"?>
<!DOCTYPE jdo PUBLIC
"-//Sun Microsystems, Inc.//DTD Java Data Objects Metadata 2.0//EN"
"http://java.sun.com/dtd/jdo_2_0.dtd">
<jdo>
<package name="org.jpox.tutorial">
<class name="Product" identity-type="datastore">
<inheritance strategy="new-table"/>
<field name="name" persistence-modifier="persistent">
<column length="100" jdbc-type="VARCHAR"/>
</field>
<field name="description" persistence-modifier="persistent">
<column length="255" jdbc-type="VARCHAR"/>
</field>
<field name="price" persistence-modifier="persistent"/>
</class>
<class name="Book" identity-type="datastore"
persistence-capable-superclass="org.jpox.tutorial.Product">
<inheritance strategy="new-table"/>
<field name="isbn" persistence-modifier="persistent">
<column length="20" jdbc-type="VARCHAR"/>
</field>
<field name="author" persistence-modifier="persistent">
<column length="40" jdbc-type="VARCHAR"/>
</field>
<field name="publisher" persistence-modifier="persistent">
<column length="40" jdbc-type="VARCHAR"/>
</field>
</class>
</package>
</jdo>
-------------------------------------------------------
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