This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

AnnouncementAnnouncement Module

Collapse

No announcement yet.

Ideas for reducing number of properties in my domain objects?Page Title Module

Ideas for reducing number of properties in my domain objects?

Mar 4th, 2012, 01:18 AM

I have a domain object called User that is becoming bloated due to all of the properties and getters/setters. I want to group some of the related properties together into a single object somehow. I have never done this before so I was wondering if anyone had any ideas on how this could be best accomplished.

It would be nice to somehow group them together. I believe I still want those to be in separate tables still. Maybe I could create an object called GroupData that would have all three of those sets as properties?