javaee / jaxb2-commons

JAXB Implementation project has been contributed to Eclipse Foundation. This repository is for legacy review only. Please refer to the Eclipse EE4J Metro project for the very latest
https://eclipse-ee4j.github.io/jaxb-ri/
Other
16 stars 15 forks source link

Allow fields to be included to be configured in the EqualsPlugin, HashCodePlugin and ToStringPlugin plugins #20

Closed glassfishrobot closed 15 years ago

glassfishrobot commented 15 years ago

Currently all fields are included, even though it isn't necessary. There should be a way to mark the fields to be included, maybe using the appinfo element (http://www.w3.org/TR/xmlschema-0/#ref15).

Environment

Operating System: All Platform: All

Affected Versions

[0.3]

glassfishrobot commented 15 years ago

Reported by fribeiro@java.net

glassfishrobot commented 15 years ago

lexi said: Hi,

If I'm getting it right, you're asking for a way to exclude certain fields from what appears in hashCode(), equals() and so on?

Like this:

Am I getting it right?
glassfishrobot commented 15 years ago

fribeiro@java.net said: Right.

glassfishrobot commented 15 years ago

fribeiro@java.net said: Any update yet?

glassfishrobot commented 15 years ago

fribeiro@java.net said: Any update yet?

glassfishrobot commented 15 years ago

lexi said: I think this must be resolved already.

See:

http://confluence.highsource.org/display/J2B/JAXB2+Basics+Plugins#JAXB2BasicsPlugins-Excludingproperties

glassfishrobot commented 15 years ago

Was assigned to lexi

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JAXB2_COMMONS-20

glassfishrobot commented 15 years ago

Marked as fixed on Tuesday, September 8th 2009, 5:18:57 pm