• Post Reply Bookmark Topic Watch Topic
  • New Topic

Design decision - data objects  RSS feed

 
D Rog
Ranch Hand
Posts: 472
Linux Objective C Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Data objects, what do you use, annotated class members or hash map? I think a hash map is more flexible especially can automatically adapt to data mode changes. Any opinions?
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure what you mean, I use data objects to be a more OO representation of my data, to think in my domain world, to think like I would think in the real world. Not thinking I have maps, and maps of maps, and what is that List I have in the Map of Maps of Maps. I like thinking I have an Address for my User, or I have an Item to for each Order Detail in my Order.

Mark
 
Mark Spritzler
ranger
Sheriff
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"D Rog"

Please click on the My Profile link above and change your display name to meet the JavaRanch Naming Policy of using your real first and real last names.

Thanks

Mark
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm pretty sure that annotatated classes are the trend.

-Cameron McKenzie
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!