[
https://issues.jboss.org/browse/FORGE-1006?page=com.atlassian.jira.plugin...
]
Vineet Reynolds updated FORGE-1006:
-----------------------------------
Summary: Provide a command to generate equals and hashcode implementations
considering all suitable fields in the JPA entity (was: The entity plugin should generate
equals and hashcode implementations considering all suitable fields in the JPA entity)
Issue Type: Feature Request (was: Enhancement)
Provide a command to generate equals and hashcode implementations
considering all suitable fields in the JPA entity
-------------------------------------------------------------------------------------------------------------------
Key: FORGE-1006
URL:
https://issues.jboss.org/browse/FORGE-1006
Project: Forge
Issue Type: Feature Request
Components: Builtin Plugins
Affects Versions: 1.3.3.Final
Reporter: Vineet Reynolds
Assignee: Vineet Reynolds
Fix For: 1.4.1.Final
As a result of FORGE-995 and FORGE-1005 the generated {{equals}} and {{hashcode}}
implementations for JPA entities would be typically incorrect due to reliance on the
auto-generated primary key value.
Additionally, since the {{equals}} and {{hashCode}} methods are generated only once
during creation of the JPA entity class, these methods would be out of date as more fields
are added (unlike the {{toString}} method). We should enhance or regenerate the existing
methods as new fields are added via the field plugin.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira