cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: ROP security
Date Thu, 16 May 2013 15:11:08 GMT

On May 16, 2013, at 6:01 PM, John Huss <johnthuss@gmail.com> wrote:
> https://www.dropbox.com/s/g247uxpalps5xse/AuthHessianService.java

Cool!

> because SelectQuery.getRoot() returns plain Object you have to screw around to figure
out what it really is.

Here is an alternative:

   query.getMetadata(entityResolver).getObjEntity();

> Also inspecting the qualifier is a little difficult, but generally that's not a
> great idea anyway - better to just add things to the qualifier even if it
> results in duplicate clauses.

Agreed. You just AND it with your own qualifier and the caller will never get more objects
than he's supposed to.

Andrus


Mime
View raw message