1 Jul 2006 22:54
fault exception
Robert Zeigler <robertz <at> puregumption.com>
2006-07-01 20:54:10 GMT
2006-07-01 20:54:10 GMT
Ok... at long last, I've a few things to report on the exception
resolving fault issue I first mentioned back in May.
Here's the brief:
Tables:
Assignment
id: pk
transactions: toMany to AssignmentTransactions
parameters: toOne to AssignmentParameters
type: used for inheritance
unimportant attributes
AssignmentTransaction:
id: pk
assignment: toOne to Assignment (uses assignmentid FK)
unimportant attributes
AssignmentParameters:
id: pk
assignment: toOne to Assignment (uses assignmentid FK)
unimportant attributes
Objects:
Assignment (type is NULL)
AssignmentTransaction
AssignmentParameters
Exam (extends Assignment; type is "exam").
In the test case, which I will attach to a JIRA issue I will open, I
fetch an Exam from the database, create a transaction, and set the
transaction's assignment to be the fetched exam. Then I refetch the
Exam from the database and try to access the parameters of the Exam, and
get the fault exception. Specifically, the AssignmentParameters can't
(Continue reading)
Andrus
On Jul 5, 2006, at 11:46 AM, Tomi NA wrote:
> It just occured to me that cayenne remote object persistence might be
> the key to a level of interoperability that I need in a very, very
> heterogenous environent (i.e. my office) where people use Java, .net
> and php, depending on the project, programmer and legacy code.
> Is there any special reason not to have a number of templates, each
> generating client code for a specific language, so that both Java
> programmers and .net programmers could use the same
> jetty/tomcat/whatever powered web service as a nice wrapper arround
> the database?
RSS Feed