I should think before I post :). Context is a web app. So I can get the user from the session / thread.
On Wednesday, 28 May 2014 21:00:53 UTC+8, Ryan How wrote: > > Just to add... I'm happy to give 3.4 a go, apparently the interface is > more powerful too? I'm not a critical project... > > > On Wednesday, 28 May 2014 20:57:16 UTC+8, Ryan How wrote: >> >> Hi, >> >> Just dropping in. I have a small new project I'm working on and naturally >> using JOOQ :). I'm keen on the multi-tenancy approach with the visit >> listener. Have you got any examples to get started? If I can add >> multi-tenancy without having to go and alter all the SQL that would be >> awesome :). As simple as adding a field to every table and JOOQ can >> automatically insert and query that field?. I'm not sure what the suggested >> approach would be? >> >> I'm mostly thinking I can be quite lazy and rely on JOOQ to make sure I >> don't have any issues with accessing other users data, and also I don't >> have to alter SQL and remember all the time to add a "user_id = ?" on every >> query and join appropriate tables, etc. >> >> Yes, using shared schema... >> >> >> Thanks! Ryan >> > -- You received this message because you are subscribed to the Google Groups "jOOQ User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
