Re: Validating super/sub entity relationships, 3.1M3 vs. 3.0.2

2012-03-26 Thread Robert Zeigler
After examining my project some more, I found the offending relationship. I have (generically): Entry (to one)-> User EntryType1 -> user (inherited from Entry) EntryType2 -> user (inherited from Entry) And: User (to many) => EntryType1 The offending relationship was the User => EntryType1.

Validating super/sub entity relationships, 3.1M3 vs. 3.0.2

2012-03-26 Thread Robert Zeigler
I'm gradually migrating my projects to 3.1M3 from the 3.0 series. Today, I converted a project in the modeler and it now complains: "Usage of super entity's relationships 'Entry.user' as reversed relationships for sub entity is discouraged" I'm using single-table inheritance in this case, and "

Re: read-write splitting and load balancing databases

2012-03-26 Thread Andrus Adamchik
We are using this extensively, and in even more streamlined fashion - each web container instance is designated as read or read/write, and configured with appropriate DataSource URL. Just to make sure the apps do not write to slaves due to some code bugs, we also create 2 separate MySQL accounts

read-write splitting and load balancing databases

2012-03-26 Thread Aristedes Maniatis
Has anyone tried to split read and write commands across databases in a pool? We are using tomcat and we have several requirements: 1. Balance requests across two mysql databases (master/slave) for an application which is read-only. We could do that within the mysql JDBC adapter (jdbc:mysql:re

Re: Error in using cayenne modeler

2012-03-26 Thread Bryan Lewis
Well, it looks like you got past the inability to connect. Now Oracle (not Cayenne) is complaining that the Artist table doesn't exist. On Mon, Mar 26, 2012 at 6:43 AM, yunus wrote: > thanx guys.Ur suggestion helped me alot.but now i am facing this new > error.Please help in this.. > > Mar 26,

Re: Error in using cayenne modeler

2012-03-26 Thread Bryan Lewis
It looks like a simple case of not being able to connect to the Oracle database. It's happening the very first time Cayenne tries to connect. Some other error message might've suggested an invalid URL, but your URL syntax looks correct. I'd make sure that the server can connect to the database w

Re: Error in using cayenne modeler

2012-03-26 Thread yunus
thanx guys.Ur suggestion helped me alot.but now i am facing this new error.Please help in this.. Mar 26, 2012 4:06:06 PM org.apache.cayenne.modeler.util.ModelerLogger info INFO: started configuration loading. Mar 26, 2012 4:06:06 PM org.apache.cayenne.modeler.util.ModelerLogger info INFO: loaded d

Re: Error in using cayenne modeler

2012-03-26 Thread yunus
Thanx guys. ur suggestions helped me alot..but now i am facing new error. it is saying that "INVALID ORACLE URL" despite that i am mentioning right. so have a look on the error and tell me the solution. Mar 26, 2012 3:33:50 PM org.apache.cayenne.modeler.util.ModelerLogger info INFO: started con