[weld-dev] SQL framework proof of concept
Gavin King
gavin.king at gmail.com
Thu Nov 26 16:15:26 EST 2009
Here, I implemented that (Join). WDYT?
On Thu, Nov 26, 2009 at 4:06 PM, Marcus Smedman <marcus at smedman.org> wrote:
> It does. I think. :) I'll give it some more thought and have a look at it
> again, thanks for the pointer.
>
> /Marcus
>
>
>> -----Original Message-----
>> From: Gavin King [mailto:gavin.king at gmail.com]
>> Sent: den 26 november 2009 21:37
>> To: Marcus Smedman
>> Cc: Arbi Sookazian; Weld-Dev
>> Subject: Re: [weld-dev] SQL framework proof of concept
>>
>> On Thu, Nov 26, 2009 at 3:16 PM, Marcus Smedman <marcus at smedman.org>
>> wrote:
>>
>> > Regarding the seam-sql I added a Drop (to speed up my small tests),
>> Alter
>> > (to add foreign keys) and a Join (a bit messy when/if using aliases)
>> to try
>> > to understand how Gavin had did the other stuff. There's a lot of
>> stuff I
>> > don't fully understand. (is a join an Expression for example?).
>>
>> Join is probably a subclass of From:
>>
>> From<users> u = query.from(users.table);
>> Join<permissions> p = fromUser.join(permissions.table)
>> p.on( eq( u.get(users.id), p.get(permissions.userId) ) );
>>
>> Does that make sense?
>>
>>
>>
>> --
>> Gavin King
>> gavin.king at gmail.com
>> http://in.relation.to/Bloggers/Gavin
>> http://hibernate.org
>> http://seamframework.org
>
>
--
Gavin King
gavin.king at gmail.com
http://in.relation.to/Bloggers/Gavin
http://hibernate.org
http://seamframework.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sseam-sql-3.zip
Type: application/zip
Size: 19036 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/weld-dev/attachments/20091126/d80eea2d/attachment-0001.zip
More information about the weld-dev
mailing list