[
http://opensource.atlassian.com/projects/hibernate/browse/HBX-963?page=co...
]
Dan Allen commented on HBX-963:
-------------------------------
Well, because that is not quite the whole story. The seam-gen tool allows you to get
started with a prototype, relying on hbm2java to create the entities. As the team gets
started with the prototype, they use seam-gen over and over for the first week until they
are mostly happy with the output. Then, they break away from the generated code and start
using it as regular code. During that time, it appears that each time the entities are
generated, they all change.
Sure, it is a use case and we could just provide our own Pojo.ftl in the pojo/ directory
of seam-gen. It's just that there isn't really a need for the timestamp. The date
the file is written is enough to know when it was generated. The comment is just noise.
make "generated by" statement optional (or remove it)
-----------------------------------------------------
Key: HBX-963
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-963
Project: Hibernate Tools
Issue Type: Improvement
Components: hbm2java
Affects Versions: 3.2beta9, 3.2beta10
Reporter: Dan Allen
Priority: Minor
Attachments: HBX-963-v1.txt
Original Estimate: 5 minutes
Remaining Estimate: 5 minutes
If you are using a version control system to manage the Java classes generated by the
hbm2java task, then every single time you run the task, it will appear as if every single
file has changed, even when there are no changes to the Java code. The reason this happens
is because the Pojo.ftl template includes a "generated by" statement that
inserts the current date and time. JAXB does this as well and it drives me insane!
I would prefer we just take out the date and time. There just isn't a good reason to
have it and the headaches that it causes are not worth it. I have included a patch to
remove it.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira