JPASupport.findKey(...) equivalent in 1.1 ?

2 views
Skip to first unread message

grandfatha

unread,
Oct 18, 2010, 4:41:59 AM10/18/10
to play-framework
Hi,

I tried to run my app with 1.1RC2 a few moments ago and the
compilation failed, because one of my plugins uses the utility-method
"JPASupport.findKey()" which no longer exists in 1.1.


Is there an equivalent in 1.1? I analyzed JPABase, GenericModel, etc,
but I could not find that method.

Guillaume Bort

unread,
Oct 18, 2010, 7:02:12 AM10/18/10
to play-fr...@googlegroups.com
You can use,

play.db.Model.Manager.factoryFor(yourClass).keyType/keyName/keyValue

> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>
>

--
Guillaume Bort, http://guillaume.bort.fr

For anything work-related, use g...@zenexity.fr; for everything else,
write guillau...@gmail.com

grandfatha

unread,
Oct 18, 2010, 8:42:00 AM10/18/10
to play-framework
wow, I love the quick and precise answer. Thanks!
Reply all
Reply to author
Forward
0 new messages