Hi Laird,
Things are well thanks. Unfortunately, you are correct, there is
no way to allow this currently. This is a good suggestion though
and has been discussed somewhat previously in the sense of
allowing an 'administrator' type of user that would bypass any
additional criteria/tenant filtering.
Feel free to enter an enhancement request capturing any
suggestions or ideas you may have surrounding this (and be sure to
vote for it as well).
Cheers,
Guy
On 15/07/2011 10:36 AM, Laird Nelson wrote:
On Thu, Jun 30, 2011 at 7:41 AM, Guy Pelletier <guy.pelletier@xxxxxxxxxx>
wrote:
Hello, Guy; hope you're well. Picking up an old thread here.
I had a look at @AdditionalCriteria and had a
question. Suppose I want to append "this.organization = :organization",
and then I don't ever set a property for organization
in the EntityManager
or EntityManagerFactory.
Is there a way to indicate that the additional criteria should
not be applied? Or that a 1 = 1 clause or something similar
should be used instead? I'm guessing not.
Best,
Laird
|