[ 
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1663?page=comments#action_17693
 ] 

Archie Cobbs commented on XDT-1663:
-----------------------------------

Oops, forgot this detail: before I was generating for Hibernate version="2.0", 
and after for Hibernate version="3.0". When I run the 1.3CVS xdoclet with 
version="2.0" it does the correct thing. So this bug is not actually a 
regression, but rather a bug specific to the version="3.0" setting.



> @hibernate component "prefx" attribute stopped working
> ------------------------------------------------------
>
>          Key: XDT-1663
>          URL: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1663
>      Project: XDoclet
>         Type: Bug

>   Components: Hibernate Module
>     Versions: 1.3
>     Reporter: Archie Cobbs
>     Assignee: xdoclet-devel (Use for new issues)

>
>
> Previously was using xdoclet-1.2.2 and everything worked.
> Just built a CVS snapshot versionof 1.3 from CVS checkout dated 2006-09-28.
> Now there is a new bug (regression) versus the 1.2.2 release.
> I have a hibernate class A that contains a component class B which is given a 
> column prefix.
> The component class B has two @hibernate.properties and one 
> @hibernate.many-to-one.
> In version 1.2.2, all three columns properly were assigned the prefix. But in 
> the 1.3 CVS version, the @hibernate.many-to-one column is no longer given a 
> prefixed column name..
> Here is a diff comparing the hbm.xml file generated by xdoclet 1.2.2 and 
> xdoclet 1.3 CVS. Note that the "originatingUnit" column should be instead 
> named "reportOriginatingUnit" (i.e., the prefix "report" is omitted).
> {noformat}
>          <component
>              name="nurseReport"
> -            class="com.awarix.trak.server.model.NurseReport"
>          >
> +
>          <property
>              name="timeCreated"
> -            type="java.sql.Timestamp"
> -            update="true"
> -            insert="true"
> -            access="property"
> -            column="reporttimeCreated"
> -        />
> +                    column="reporttimeCreated"
> +        >
> +
> +        </property>
>          <many-to-one
>              name="originatingUnit"
> -            class="com.awarix.trak.server.model.Unit"
> -            cascade="none"
> -            outer-join="auto"
> -            update="true"
> -            insert="true"
> -            access="property"
> -            column="reportoriginatingUnit"
> -        />
> +        >
> +
> +        </many-to-one>
>          <property
>              name="initials"
> -            type="java.lang.String"
> -            update="true"
> -            insert="true"
> -            access="property"
> -            column="reportinitials"
> -            length="8"
> -        />
> +                    column="reportinitials"
> +                length="8"
> +        >
> +
> +        </property>
>          </component>
> {noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to