cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lachlan Deck <lachlan.d...@gmail.com>
Subject [suggestion] unmodifiable toMany lists
Date Tue, 10 Nov 2009 07:49:20 GMT
Hi there,

given some stuff we've seen in our own code (and general better  
practices for dealing with collections in general) I thought I'd  
suggest the following changes for the default cayenne entity templates:
- private ivars rather than protected (if they're not already)

- return Collections.unmodifiableList(foo) rather than returning the  
actual list that's modified via addTo/removeFrom etc.

Thoughts? Philosophies?

with regards,
--

Lachlan Deck




Mime
View raw message