Sounds like a bug. If products is null (not just empty) nothing should
be marshalled, so most likely you've run across a bug, in which case you
can file a bugzilla (http://bugzilla.exolab.org) report if you wish to
track progress on the issue.
--Keith
"Liu, Victor" wrote:
>
> Can anyone help me
Can anyone help me with a question regarding null handling.
If I have a class:
class SOMECLASS
{
public Product products[];
public Product[] getProducts() { return products; }
public void setProducts(Product products[]) { this.products =
products; }
}
and I have an x
Emmanuel Bourg wrote:
>
> Well how do you marshall/unmarshall objects obtained from a database
> through Castor JDO and using the same mapping as Castor XML ? You will
> have conflicting IDs.
Castor will eventually need to support the notion of "key and keyref" as
defined by XML Schema so I hav
Arnaud Blandin wrote:
>
> Hi Emmanuel,
>
> Thanks for the precision but Castor XML currently implements the
> ID/IDREF mechanism in the marshalling framework.
>
*currently* is the "key" word here. XML Schema has the notion of keys
(unique, key, keyref) which are currently not supported.
Emma
The solution to your needs may be :
- do not map the one-many relation, only the Doctor to Department
- add a finder to the Departement class to search for the doctors
of a department when you need to.
Arijit Ghosh wrote:
Hi Bruce,
Why do you think that the relation is Object to Object ? W
Boris Klug wrote:
Hello!
we have several object with doubles that map to numeric(13,3) in our
PostgreSQL DB (version 7.2). When Castor (version 0.9.4.1) tries to write
back the object after a commit(), I get the following error:
2002.11.29 11:30:14: WUI,INFO: [Castor]:
org.exolab.castor.jdo.Tra
There is a bug with 7.2.x numeric... In theory, the latest version has it
fixed (7.2.3) but I still had problems with it... 7.3 (cvs) has the 'real
fix'
> -- Thus, Bruce Snyder had said:
> This one time, at band camp, Boris Klug said:
>
> BK>Hello!
> BK>
> BK>we have several object with doubles
Thank you Bruce,
With the debug approach I was trying to see what Castor was doing. (The
Logger works fine thanks :)
I thought I may have been able to return some of the dependant object data
with the parent data in one call, but it appears that it is not possible. I
will need to query for the ID
This one time, at band camp, Arijit Ghosh said:
AG> Why do you think that the relation is Object to Object ? We have multiple
doctors
AG>belonging to a SINGLE department. So we have implemented it using 1-many
relationship and
AG>that means Object to Collection of Objects. Mapping.xml also s
This one time, at band camp, Neil Blue said:
NB>I am using castor 0.9.4.1, and I am able to use "SQL CALL..." to query the
NB>database and return an object. But I am unable to do this for objects that
NB>have collection attributes.
NB>
NB>Please could someone tell me the syntax required to query o
This one time, at band camp, Nikolov. Dragomir said:
ND> I have two classes having many-to-many relationship.
ND> public class A
ND> {
ND> ...
ND> }
ND>
ND> public class B
ND> {
ND> public Collection getAs()
ND> {
ND> ..
ND>
This one time, at band camp, Neil Blue said:
NB>I am trying to find the debug flags that will let me view the SQL statements
NB>that castor uses. Please could someone point me in the right direction.
Neil,
Are you trying to see all the SQL generated by Castor or just the
SQL that is currently be
Hello again!
> _oql = _db.getOQLQuery( "SELECT types FROM jdo.TestTypes types WHERE
> id = $(integer)1" );
The thing is, that the problem also occures when Castor updates the object and
at this time, Castor generates the update statement and (afaik) I have no
change to insert the cast.
>
Is it valid for an XML*Schema to contain multiple pattern strings for
validation, such as:
Seems like the resulting Castor code is only picking up the last one
(and therefore throwing validation errors that aren't correct). Does
this qualify as a bug or is this in fact invalid Schema code
This one time, at band camp, Boris Klug said:
BK>Hello!
BK>
BK>we have several object with doubles that map to numeric(13,3) in our
BK>PostgreSQL DB (version 7.2). When Castor (version 0.9.4.1) tries to write
BK>back the object after a commit(), I get the following error:
BK>
BK>2002.11.29 11:30:1
This one time, at band camp, Ingrid Duda said:
ID>this is my first project with Castor JDO. The Problem I have: every time i
ID>have a second access to the database it cause the following Exception:
ID>org.exolab.castor.jdo.QueryException: Could not find class jdoproj.User
ID> at org.exolab.ca
This one time, at band camp, Gustavo Pistoia said:
GP> I need to know if there is any possibility to use my own PoolConnection.
GP>
GP> And also I want to thanks all the people working with Castor, really a
GP>good job you all do.
Gustavo,
Only if the pooling mechanism implements java.sql.Driv
Does anyone have a good solution or workaround for this?
Shallow updates do not update foreign keys in the root object's associated database
table. By shallow, I mean that I have called setAutoStore(false) before the
transaction. Given our very complex object hierarchy, we are unable to use
s
18 matches
Mail list logo