Re: Multi tenancy Implementation

2012-07-31 Thread Aristedes Maniatis
We do this. Take a look at the qualifiers you can add within the model... a great way to enforce data selection by one customer at a time. But that approach is to have all the data in one database with just a column to discriminate. Not separate databases. What you are wanting to do is switch

Deleting n:m relationships

2012-07-31 Thread Tobias Wolff
Hi, I am currently trying to do the following in Cayenne 3.0.2: * fetch an object A * delete some related objects which are related to A in an n:m relation * add new objects to A (same n:m relation) I have undergone a couple of java.util.ConcurrentModificationException and org.apache.cayenn

Multi tenancy Implementation

2012-07-31 Thread vinod kumar
I am looking around for a multi tenancy ORM tool to use in my Java application I have the following situartion a primary customer table Customer ID Customer Name Jndi Datasource 1 Mrxjndi 1 2 Mryjndi 2 at run time

Re: Life cycle callback onPostAdd doesn't seem to be working

2012-07-31 Thread Kanwar Manish
Thanks MRG. It is clear now. I am now getting another problem now. Below is the code [code part 1] based upon your inputs. However after initiating an object from the context - there is no ID in the objects [code part 2]. When I debug all the id's are temp ids and "*lf.getLogicalFolderId()*" in co