All,
I have a oracle view that I mapped to a Jdo. The view has two columns that
combine to form the identity for the JDO.
<class name="com.foo.Object" identity="id1 id2" >
...
<field name="id1" type="long">
<sql name="ID1" type="bigint"/>
</field>
<field name="id2" type="string">
<sql name="ID2" type="bigint"/>
</field>
</class>
Where id2 may or may not be null in the view.
This object is queried by using
db.load(com.foo.Object.class,new Complex(new Long(1),new
String("2"),Database.ReadOnly);
This works fine. The problem arises when there is no id2.
I tried using
db.load(com.foo.Object.class,new Complex(new Long(1),new
String(""),Database.ReadOnly);
Which did not work and tried using
db.load(com.foo.Object.class,new Complex(new
Long(1),null,Database.ReadOnly);
Which also did not work.
Can someone please help me on how to specify the nullable field in db.load ?
Thanks
Vijay
-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------