[
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1663?page=all ]
Archie Cobbs updated XDT-1663:
------------------------------
Attachment: XDT-1663.txt
The attached patch seems to fix the problem for me.
> @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)
> Attachments: XDT-1663.txt
>
>
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel