Hi Max,
Thanks for your answer! It turned my attention to problems I missed in my previous post. But it is still possible to do it all. What do you think?
(I apologize for my slow response)
Quote:
ask user for 3 packages ? where ? are you talking seamgen ?
note there already is a jira task for making this package control better...feel free to provide patches to that one.
Yes, I talking about asking user for 3 separate packages (3 edits).
Is it OK?
Quote:
no - it is not. One should not commit to a specfic serialVersionUID value unless you actual plan to use it for ensuring serializability compability. Generating a "random" one is hurtfull.
Do you have any particular reason for wanting it ? (besides removing eclipses annoying default warning about it)
OK, let me explain. Usually after DB schema was changed, HibTools users will not change domain code manually. They could simply regenerate it from the schema, replacing prevous domain code. And, this code most possibly work in cluster environment, so it need to be serialized/deserialized then live in distributed cache.
Hibernate Tools could use function based on datatypes/variable's name. It could be, for instance:
(type1.hashCode*2^16+var1.hashCode) +
(type2.hashCode*2^16+var2.hashCode) + ... +
(typeN.hashCode*2^16+varN.hashCode)
Quote:
3) I think it worth to add equals/hashCode to entity pojos every time and change algorithm to compare Ids in equals and return id.hashCode() in hashCode();
definitly not. See
http://www.hibernate.org/109.htmlPlease, consider this solution (using inner classes):
http://art-of-dev.blogspot.com/2007/02/ ... oblem.htmlI could implement it.
Quote:
4) Seam code generation has a number of bugs and I can fix code there.
Are we talking the seam templates in hibernate tools or seamgen ?
The former will be deprecated/removed soon now that seamgen has reached usefullnes.
Do you mean beta9 version or next one?