cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject ObjectContext.localObject refactoring
Date Sat, 03 Sep 2011 21:16:15 GMT
https://issues.apache.org/jira/browse/CAY-1611

I've got tired of doing:

Artist localArtist = (Artist) context.localArtist(artist.getObjectId(), null);

Aside from causing confusion about the second argument (should it be 'artist'? no, it should
be null), it is still plain ugly. Anyone sees any flaws with the reasoning behind this Jira?

Andrus
Mime
View raw message