db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Russell <Craig.Russ...@Sun.COM>
Subject Re: TestFieldsOfObject patch
Date Wed, 07 Sep 2005 23:45:23 GMT
Hi Geoff,

On Aug 21, 2005, at 11:02 AM, Geoff hendrey wrote:

> Well, I just bit the bullet and built in code to
> serialize the objects when they are not PC's.
> Now that
> we have a standardized mapping, this sort of ambiguity
> will be harder to slide by, because the or-mapping
> will be part of the test suite (right?).

Well, serialization as a persistence strategy is standard with the  
jdo metadata, and applies not only to orm but to other data storage  
mechanisms (object databases, file systems, etc.).

ORM is part of the spec and so is serialization as a strategy. You  
can see from the Apache JDO project work that we will test the new  
serialization metadata attributes.

>
> -geoff
>
> --- Craig Russell <Craig.Russell@Sun.COM> wrote:
>
>
>> Hi Michelle,
>>
>> The test from JDO 1.0 would probably not pass most
>> non-object
>> database JDO implementations. I'm disappointed that
>> no one (many
>> claimed to have passed the JDO 1.0 TCK) complained
>> about this test.
>>
>> The changes you suggest are fine with me.
>>
>> Craig
>>
>> On Aug 20, 2005, at 8:58 AM, Michelle Caisse wrote:
>>
>>
>>> Any objections?
>>>
>>> -- Michelle
>>> Index:
>>>
>> test/java/org/apache/jdo/tck/models/fieldtypes/
>>
>>> TestFieldsOfObject.java
>>>
>>>
>>
>>
> ===================================================================
>
>>> ---
>>>
>> test/java/org/apache/jdo/tck/models/fieldtypes/
>>
>>> TestFieldsOfObject.java    (revision 231272)
>>> +++
>>>
>> test/java/org/apache/jdo/tck/models/fieldtypes/
>>
>>> TestFieldsOfObject.java    (working copy)
>>> @@ -21,6 +21,7 @@
>>>
>>>  import org.apache.jdo.tck.JDO_Test;
>>>  import
>>>
>> org.apache.jdo.tck.pc.fieldtypes.FieldsOfObject;
>>
>>> +import
>>>
>> org.apache.jdo.tck.pc.fieldtypes.SimpleClass;
>>
>>>  import org.apache.jdo.tck.util.BatchTestRunner;
>>>
>>>  /**
>>> @@ -77,8 +78,8 @@
>>>          Transaction tx = pm.currentTransaction();
>>>          try {
>>>              int i, n;
>>> -            Object firstValue = new
>>>
>> String("Hello");
>>
>>> -            Object secondValue = new
>>>
>> Integer("420");
>>
>>> +            Object firstValue = new
>>>
>> SimpleClass(1, "Hello");
>>
>>> +            Object secondValue = new
>>>
>> SimpleClass(333, "420");
>>
>>>              tx.begin();
>>>              FieldsOfObject pi = new
>>>
>> FieldsOfObject();
>>
>>>              pi.identifier = 1;
>>>
>>>
>>
>> Craig Russell
>> Architect, Sun Java Enterprise System
>> http://java.sun.com/products/jdo
>> 408 276-5638 mailto:Craig.Russell@sun.com
>> P.S. A good JDO? O, Gasp!
>>
>>
>>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message