-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: create a xdoclet javadoc templete for hibernate at eclipse
PostPosted: Sun Sep 14, 2003 6:24 am 
Newbie

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=&quot;&quot; where=&quot;&quot; cascade=&quot;all:none:save-update:delete&quot; schema=&quot;&quot;</template>
<template name="@hibernate.bag" description="Defines a bag" context="javadoc" enabled="true">@hibernate.bag table=&quot;&quot; order-by=&quot;&quot; where=&quot;&quot; lazy=&quot;false&quot; cascade=&quot;all:none:save-update:delete&quot; inverse=&quot;&quot; schema=&quot;&quot;</template>
<template name="@hibernate.class" description="Declare a persistent class" context="javadoc" enabled="true">@hibernate.class table=&quot;&quot; dynamic-update=&quot;&quot; dynamic-insert=&quot;&quot; polymorphism=&quot;explicit:implicit&quot; discriminator-value=&quot;&quot; mutable=&quot;&quot; schema=&quot;&quot; proxy=&quot;&quot;</template>
<template name="@hibernate.collection-element" description="Defines a collection-element" context="javadoc" enabled="true">@hibernate.collection-element column=&quot;&quot; type=&quot;&quot; length=&quot;&quot; not-null=&quot;false&quot; unique=&quot;false&quot;</template>
<template name="@hibernate.collection-index" description="Defines a collection-index" context="javadoc" enabled="true">@hibernate.collection-index column=&quot;&quot; type=&quot;&quot; length=&quot;&quot;</template>
<template name="@hibernate.collection-jcs-cache " description="Defines a @hibernate.collection-jcs-cache " context="javadoc" enabled="true">@hibernate.collection-jcs-cache usage=&quot;read-write:nonstrict-read-write:read-only&quot;</template>
<template name="@hibernate.collection-key" description="Declares a collection key" context="javadoc" enabled="true">@hibernate.collection-key column=&quot;&quot;</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=&quot;&quot; class=&quot;&quot; outer-join=&quot;true:false:auto&quot;</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=&quot;&quot;</template>
<template name="@hibernate.column" description="Customize column mapping" context="javadoc" enabled="true">@hibernate.column name=&quot;&quot; length=&quot;&quot;not-null=&quot;&quot; unique=&quot;false&quot; index=&quot;&quot; unique-key=&quot;&quot; sql-type=&quot;&quot;</template><template name="@hibernate.component" description="Declares a component" context="javadoc" enabled="true">@hibernate.component class=&quot;&quot;</template>
<template name="@hibernate.composite-element" description="Defines a composite-element" context="javadoc" enabled="true">@hibernate.composite-element class=&quot;&quot;</template><template name="@hibernate.discriminator" description="Defines a discriminator" context="javadoc" enabled="true">@hibernate.discriminator column=&quot;false&quot; type=&quot;&quot; length=&quot;false&quot;</template>
<template name="@hibernate.generator-param" description="Declare a named query for class" context="javadoc" enabled="true">@hibernate.generator-param name=&quot;&quot; value=&quot;&quot;</template><template name="@hibernate.id" description="Declares an identifier property" context="javadoc" enabled="true">@hibernate.id column=&quot;&quot; type=&quot;&quot; length=&quot;&quot; unsaved-value=&quot;&quot; generator-class=&quot;uuid.hex:uuid.string:increment:assigned:native:identity:sequence:hilo:seqhilo:foreign&quot;</template>
<template name="@hibernate.jcs-cache" description="Enables caching" context="javadoc" enabled="true">@hibernate.jcs-cache usage=&quot;read-write: nonstrict-read-write:read-only&quot;</template>
<template name="@hibernate.joined-subclass" description="Declare the current class as joined subclass " context="javadoc" enabled="true">@hibernate.joined-subclass proxy=&quot;&quot; dynamic-update=&quot;&quot; dynamic-insert=&quot;&quot; schema=&quot;&quot;</template>
<template name="@hibernate.joined-subclass-key" description="Declares a joined-subclass key " context="javadoc" enabled="true">@hibernate.joined-subclass-key column=&quot;&quot;</template>
<template name="@hibernate.list" description="Defines a list" context="javadoc" enabled="true">@hibernate.list table=&quot;&quot; where=&quot;&quot; lazy=&quot;false&quot; cascade=&quot;all:none:save-update:delete&quot; schema=&quot;&quot;</template>
<template name="@hibernate.many-to-one" description="Declares a many-to-one association" context="javadoc" enabled="true">@hibernate.many-to-one column=&quot;&quot; class=&quot;&quot; cascade=&quot;all:none:save-update:delete&quot; not-null=&quot;&quot; unique=&quot;false&quot; outer-join=&quot;true:false:auto&quot; insert=&quot;false&quot; update=&quot;false&quot;</template>
<template name="@hibernate.map" description="Defines a map" context="javadoc" enabled="true">@hibernate.map table=&quot;&quot; sort=&quot;&quot; order-by=&quot;&quot; where=&quot;&quot; lazy=&quot;false&quot; cascade=&quot;all:none:save-update:delete&quot; schema=&quot;&quot;</template>
<template name="@hibernate.one-to-one" description="Declares a one-to-one association" context="javadoc" enabled="true">@hibernate.one-to-one class=&quot;&quot; constrained=&quot;false&quot; cascade=&quot;all:none:save-update:delete&quot; outer-join=&quot;true:false:auto&quot;</template>
<template name="@hibernate.primitive-array" description="Defines a primitive-array" context="javadoc" enabled="true">@hibernate.primitive-array table=&quot;&quot; where=&quot;&quot; cascade=&quot;all:none:save-update:delete&quot; schema=&quot;&quot;</template>
<template name="@hibernate.property" description="Defines a property" context="javadoc" enabled="true">@hibernate.property column=&quot;&quot; type=&quot;&quot; length=&quot;&quot; not-null=&quot;&quot; unique=&quot;false&quot; insert=&quot;false&quot; update=&quot;false&quot;</template><template name="@hibernate.query" description="Declare a named query for class" context="javadoc" enabled="true">@hibernate.query name=&quot;&quot; query=&quot;&quot;</template>
<template name="@hibernate.set" description="Defines a set" context="javadoc" enabled="true">@hibernate.set table=&quot;&quot; sort=&quot;&quot; order-by=&quot;&quot; where=&quot;&quot; lazy=&quot;false&quot; cascade=&quot;all:none:save-update:delete&quot; inverse=&quot;&quot; schema=&quot;&quot;</template>
<template name="@hibernate.subclass" description="Declare the current class as subclass" context="javadoc" enabled="true">@hibernate.subclass dynamic-update=&quot;false&quot; dynamic-insert=&quot;false&quot; discriminator-value=&quot;&quot; proxy=&quot;&quot;</template>
<template name="@hibernate.timestamp" description="Declares a timestamp property" context="javadoc" enabled="true">@hibernate.timestamp column=&quot;&quot;</template>
<template name="@hibernate.version" description="Declares a version property" context="javadoc" enabled="true">@hibernate.version column=&quot;&quot; type=&quot;&quot; Valid=&quot;integer:short:long:timestamp:calendar &quot;</template>
</templates>
[/code][img][/img][img][/img]


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 17, 2003 11:47 am 
Newbie

Joined: Fri Sep 05, 2003 10:30 am
Posts: 17
Location: Texas
I use IBM's implementation of eclipse - how would I make it aware of this template file?


Top
 Profile  
 
 Post subject: Import into eclipse...
PostPosted: Fri Oct 17, 2003 10:25 am 
Newbie

Joined: Mon Sep 01, 2003 5:10 am
Posts: 7
Location: Freiburg, Germany
You need to import the template under Window -> Preferences -> Java -> Editor -> Templates


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.