The following comment has been added to this issue:
Author: Jeryl M. Cook
Created: Mon, 4 Apr 2005 7:28 PM
Body:
round trip engineering??
middle gen, generates .hbm files from a datasource. Inside the generated .hbm
files are xdoclet meta-data tags.
process.
1. generate .hbm from datasource using xdoclet middlegenTask. all of the .hbm
files now contain 'meta' node(s).
for example:
<class
name="com.vanitysoft.griffin.domain.hibernate.Feed"
table="feeds"
>
<meta attribute="class-description" inherit="false">
@hibernate.class
table="feeds"
</meta>
2. run hbm2java using hibernate's xdoclet hbm2javaTask. this creates java class
files with all of the xdoclet tags(those meta nodes) attached to the approiate
properties, and classes.
3. (this step is my problem). say i make a change in the xdoclet tag inside of
my class, and then run xdoclet's own HibernateDocletTask to re-generate the
.hbm. the 'meta' nodes are not there!
in round trip using xdoclet/hibernate/middlegen , u can go back and forth. i
hope somone really reads this and gives me a good answer. it seemed it would
be a bug not to include the meta back in .hbm files.thx.
---------------------------------------------------------------------
View this comment:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1324?page=comments#action_16262
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1324
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XDT-1324
Summary: missing xdoclet tags from java files
Type: Bug
Status: Resolved
Priority: Major
Resolution: WON'T FIX
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: XDoclet
Components:
Hibernate Module
Versions:
1.2.2
Assignee: xdoclet-devel (Use for new issues)
Reporter: Jeryl M. Cook
Created: Fri, 1 Apr 2005 8:31 AM
Updated: Mon, 4 Apr 2005 7:28 PM
Environment: windows xp, 2gigs ram, java 1.4.x, eclipse xdoclet 1.2.2,middlegen
2.1
Description:
ok, ive been using xdoclet/middlegen/hibernate for a good while now.. here is
my procedure.
i only use middlegen in the earlier stage from a legacy database. it generates
the .hbm WITH THE XDoclet tags, which i like...then i use java2hbm that
generates the nice java files WITH THE Xdoclet tags.. NOW this is where round
trip stopps and i havnt foudn a solution. i change an Xdoclet tag, in the
java class then run java2hbm(using xdoclet hibernate tool), and it DOES NOT
include the xdoclet metadata tags in the .hbm files! When i run hbm2java again
on the second generated hbm files , they create the java files WITHOUT the
metadata tags ... is there a setting i can tell xdoclet to include the metadata
tags when generating the hbm from java??
middlgen->hbm(with xdoclet tags)->hbmn2java->creates java(with xdoclet tags)
java2hbm(xdoclet plugin)->hbm(without xdoclet tags)-> :(
if possible please send me a response if im doing somthing wrong or this is a
bug..thanks
Jeryl Cook
http://pharaohofkush.blogspot.com/
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
xdoclet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel