Issue Details (XML | Word | Printable)

Key: HBX-564
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: George Lindholm
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hibernate Tools

invalid <timestamp generated

Created: 30/Jan/06 05:05 PM   Updated: 31/Jan/06 12:22 AM
Component/s: reverse-engineer
Affects Version/s: 3.1beta4
Fix Version/s: 3.1.beta5

Time Tracking:
Not Specified


 Description  « Hide
reverse enginnering generates:

<timestamp name="lastUpdtDate" type="timestamp" name="LAST_UPDT_DATE" />

hxm->java fails with:

  ...
  Error on line 11 of document : Attribute "name" was already specifed for element "timestamp".


I think that should be:

<timestamp name="lastUpdtDate" type="timestamp" column="LAST_UPDT_DATE" />


Changing the tag name then generates this exception:

  Attribute "type" must be declared for element type "timestamp"

which doesn't make sense?

 All   Comments   Work Log   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Max Rydahl Andersen added a comment - 31/Jan/06 12:22 AM
damn unittest, but thanks ;)

workaround: update timestamp.hbm.vm to use column instead of name and remove the type attribute.