On 12月18日, 上午12時32分, Julien Tournay <
boudhe...@gmail.com> wrote:
> Yep, sorry I read his message too fast ;)
>
> jto.
>
>
>
>
>
>
>
>
>
> On Fri, Dec 17, 2010 at 5:20 PM, William Wong <
williamw...@gmail.com> wrote:
>
> > This returns the list of field 'name' from the ClickLog entity:
>
> > List<String> names = JPA.em().createQuery("select name from
> > ClickLog where logtime > 123").getResultList();
>
> > This returns the list of ClickLog entities:
>
> > List<ClickLog> logs = ClickLog.find("name = ?",name);
>
> > They are for different purpose.
>
> > On Fri, Dec 17, 2010 at 7:37 AM, KuoYing@Taiwan <
stu93303...@gmail.com>wrote:
>
> >> OK!! But If I want to do ClickLog.find(?,?) <---don't the other ways??
>
> >> On 12月17日, 下午11時29分, The Dave <
the.dave.car...@gmail.com> wrote:
> >> > If ClickLog is a mapped entity object, you can do this:
>
> >> > List<String> names = JPA.em().createQuery("select name from
> >> > ClickLog").getResultList();
>
> >> > This will just return the list of names for the ClickLog table.
>
> >> > --Dave
>
> >> > On Dec 17, 8:25 am, "KuoYing@Taiwan" <
stu93303...@gmail.com> wrote:
>
> >> > > Hi all:
> >> > > I'd like to query just like "select name from table" by SQL
> >> > > How do I do by Play...
> >> > > I try to coding........
>
> >> > > List<ClickLog> name = ClickLog.find(?,?).fetch();
>
> >> --
> >> 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