-->
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.  [ 2 posts ] 
Author Message
 Post subject: XDoclet 2 - how to use the hibernate.param tag
PostPosted: Thu May 19, 2005 5:22 am 
Beginner
Beginner

Joined: Thu Dec 25, 2003 8:08 am
Posts: 26
I'm using the following xdoclet fragment:
Code:
    /**
     * @return
     * @hibernate.property
     *  type="com.eyeclick.datastore.mapping.EnumUserType"
     * @hibernate.param
     *  name="enumClassName" value="com.eyeclick.infrastructure.logging.Level "
     */
    public Level getLevel() {
        return m_level;
    }


The mapping file created omits the param tag:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" " http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
  <class table="AgentEvent" name="com.events.AgentEventBO">
    <id unsaved-value="0" name="id" type="com.mapping.IdHibernateType" column="Id">
      <generator class="com.mapping.IdGenerator"/>
    </id>
    <version unsaved-value="undefined" name="version"/>
    <property name="level" type="com.mapping.EnumUserType"/>
    <property name="message"/>
    <property name="timestamp"/>
    <property name="context"/>
  </class>
</hibernate-mapping>


Any help?


Top
 Profile  
 
 Post subject: Re: XDoclet 2 - how to use the hibernate.param tag
PostPosted: Thu May 26, 2005 7:55 am 
Beginner
Beginner

Joined: Fri Mar 12, 2004 1:12 pm
Posts: 25
Location: Minsk, Belarus
TheKing99 wrote:
I'm using the following xdoclet fragment:
Code:
    /**
     * @return
     * @hibernate.property
     *  type="com.eyeclick.datastore.mapping.EnumUserType"
     * @hibernate.param
     *  name="enumClassName" value="com.eyeclick.infrastructure.logging.Level "
     */
    public Level getLevel() {
        return m_level;
    }


The mapping file created omits the param tag:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" " http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
  <class table="AgentEvent" name="com.events.AgentEventBO">
    <id unsaved-value="0" name="id" type="com.mapping.IdHibernateType" column="Id">
      <generator class="com.mapping.IdGenerator"/>
    </id>
    <version unsaved-value="undefined" name="version"/>
    <property name="level" type="com.mapping.EnumUserType"/>
    <property name="message"/>
    <property name="timestamp"/>
    <property name="context"/>
  </class>
</hibernate-mapping>


Any help?


Please post such questions to project maillist http://sourceforge.net/mail/?group_id=88133 and we will anwser it much quicker.
What is it param?? Is it generator parameter?? If yes then it should be on property level.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.