The following comment has been added to this issue: Author: Andrew Stevens Created: Wed, 6 Apr 2005 6:12 PM Body: It probably wouldn't be too difficult to add this - for starters, a bunch of <XDtClass:classTagValue> tags in hibernate.xdt guarded by a config param (since not everyone needs it) and a version test (as meta was only added to the DTD in 2.0). Unless a lot more people ask for it, I don't expect it'll be added to the main distribution, though.
Round-trip engineering is a good buzzword, but with all that generation going on, it's impractical. When you go for java to hmb and back again, what changes your database schema? And, after you've updated the database manually, why not just re-run Middlegen & hbm2java to update the java files? After all, you can't have added any other code in the classes otherwise doing the java->hbm->java shuffle would lose it anyway... Also, what's the point of generating XDoclet-enhanced java files when you already have the hbms from Middlegen? All that'll do is regenerate what you already have. Or, if the use of Middlegen was a one-off to get the initial java files, then just maintain those (they're probably clearer to edit anyway than hbm files). IMO you should just decide what your "source" is (UML model, java classes or the database schema) and generate everything else derived from that (via AndroMDA, XDoclet or Middlegen respectively). Much simpler, and less chance of overwriting something you didn't want to. --------------------------------------------------------------------- View this comment: http://opensource.atlassian.com/projects/xdoclet/browse/XDT-1324?page=comments#action_16289 --------------------------------------------------------------------- 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: Wed, 6 Apr 2005 6:12 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 xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel