Joined: Tue Aug 26, 2003 12:28 pm Posts: 4
|
I create a javadoc templete at eclipse for hibernate.
May be,you can use it to write xdoclet easier.
Hope you like!
The templete xml file:
[code]
<?xml version="1.0" encoding="UTF-8"?>
<templates>
<template name="@hibernate.array" description="Defines a array" context="javadoc" enabled="true">@hibernate.array table="" where="" cascade="all:none:save-update:delete" schema=""</template>
<template name="@hibernate.bag" description="Defines a bag" context="javadoc" enabled="true">@hibernate.bag table="" order-by="" where="" lazy="false" cascade="all:none:save-update:delete" inverse="" schema=""</template>
<template name="@hibernate.class" description="Declare a persistent class" context="javadoc" enabled="true">@hibernate.class table="" dynamic-update="" dynamic-insert="" polymorphism="explicit:implicit" discriminator-value="" mutable="" schema="" proxy=""</template>
<template name="@hibernate.collection-element" description="Defines a collection-element" context="javadoc" enabled="true">@hibernate.collection-element column="" type="" length="" not-null="false" unique="false"</template>
<template name="@hibernate.collection-index" description="Defines a collection-index" context="javadoc" enabled="true">@hibernate.collection-index column="" type="" length=""</template>
<template name="@hibernate.collection-jcs-cache " description="Defines a @hibernate.collection-jcs-cache " context="javadoc" enabled="true">@hibernate.collection-jcs-cache usage="read-write:nonstrict-read-write:read-only"</template>
<template name="@hibernate.collection-key" description="Declares a collection key" context="javadoc" enabled="true">@hibernate.collection-key column=""</template>
<template name="@hibernate.collection-many-to-many" description="Defines a collection-many-to-many" context="javadoc" enabled="true">@hibernate.collection-many-to-many column="" class="" outer-join="true:false:auto"</template>
<template name="@hibernate.collection-one-to-many" description="Defines a collection-one-to-many" context="javadoc" enabled="true">@hibernate.collection-one-to-many class=""</template>
<template name="@hibernate.column" description="Customize column mapping" context="javadoc" enabled="true">@hibernate.column name="" length=""not-null="" unique="false" index="" unique-key="" sql-type=""</template><template name="@hibernate.component" description="Declares a component" context="javadoc" enabled="true">@hibernate.component class=""</template>
<template name="@hibernate.composite-element" description="Defines a composite-element" context="javadoc" enabled="true">@hibernate.composite-element class=""</template><template name="@hibernate.discriminator" description="Defines a discriminator" context="javadoc" enabled="true">@hibernate.discriminator column="false" type="" length="false"</template>
<template name="@hibernate.generator-param" description="Declare a named query for class" context="javadoc" enabled="true">@hibernate.generator-param name="" value=""</template><template name="@hibernate.id" description="Declares an identifier property" context="javadoc" enabled="true">@hibernate.id column="" type="" length="" unsaved-value="" generator-class="uuid.hex:uuid.string:increment:assigned:native:identity:sequence:hilo:seqhilo:foreign"</template>
<template name="@hibernate.jcs-cache" description="Enables caching" context="javadoc" enabled="true">@hibernate.jcs-cache usage="read-write: nonstrict-read-write:read-only"</template>
<template name="@hibernate.joined-subclass" description="Declare the current class as joined subclass " context="javadoc" enabled="true">@hibernate.joined-subclass proxy="" dynamic-update="" dynamic-insert="" schema=""</template>
<template name="@hibernate.joined-subclass-key" description="Declares a joined-subclass key " context="javadoc" enabled="true">@hibernate.joined-subclass-key column=""</template>
<template name="@hibernate.list" description="Defines a list" context="javadoc" enabled="true">@hibernate.list table="" where="" lazy="false" cascade="all:none:save-update:delete" schema=""</template>
<template name="@hibernate.many-to-one" description="Declares a many-to-one association" context="javadoc" enabled="true">@hibernate.many-to-one column="" class="" cascade="all:none:save-update:delete" not-null="" unique="false" outer-join="true:false:auto" insert="false" update="false"</template>
<template name="@hibernate.map" description="Defines a map" context="javadoc" enabled="true">@hibernate.map table="" sort="" order-by="" where="" lazy="false" cascade="all:none:save-update:delete" schema=""</template>
<template name="@hibernate.one-to-one" description="Declares a one-to-one association" context="javadoc" enabled="true">@hibernate.one-to-one class="" constrained="false" cascade="all:none:save-update:delete" outer-join="true:false:auto"</template>
<template name="@hibernate.primitive-array" description="Defines a primitive-array" context="javadoc" enabled="true">@hibernate.primitive-array table="" where="" cascade="all:none:save-update:delete" schema=""</template>
<template name="@hibernate.property" description="Defines a property" context="javadoc" enabled="true">@hibernate.property column="" type="" length="" not-null="" unique="false" insert="false" update="false"</template><template name="@hibernate.query" description="Declare a named query for class" context="javadoc" enabled="true">@hibernate.query name="" query=""</template>
<template name="@hibernate.set" description="Defines a set" context="javadoc" enabled="true">@hibernate.set table="" sort="" order-by="" where="" lazy="false" cascade="all:none:save-update:delete" inverse="" schema=""</template>
<template name="@hibernate.subclass" description="Declare the current class as subclass" context="javadoc" enabled="true">@hibernate.subclass dynamic-update="false" dynamic-insert="false" discriminator-value="" proxy=""</template>
<template name="@hibernate.timestamp" description="Declares a timestamp property" context="javadoc" enabled="true">@hibernate.timestamp column=""</template>
<template name="@hibernate.version" description="Declares a version property" context="javadoc" enabled="true">@hibernate.version column="" type="" Valid="integer:short:long:timestamp:calendar "</template>
</templates>
[/code][img][/img][img][/img]
|
|