1 Apr 2005 01:49
Re: DataObject becomes hollow when passed through a tapestry DirectLink
Jamie <jamie <at> dang.com>
2005-03-31 23:49:36 GMT
2005-03-31 23:49:36 GMT
Sure, that's how I would generally get an object... just pass the id around and get it again. In my particular example, that didn't work. The object itself doesn't exist in the database per se and we needed an easy way to transport the data around. The datasqueezer really shines here. What's it's written and registered Tapestry just knows what to do--just pass it as a parameter and it gets squeezed automatically. Love it! Jamie Andrus Adamchik wrote: >Hi Jamie, > > > >>One thing Richard added was to put the squeeze() code into the object >>itself so only one object had to be modified as we developed. He made a >>constructor that takes the sqeezed object and converts it back into the >>unsqueezed object. >> >> > >Cayenne works on the assumption that each object is uniqie within >DataContext (a very nice feature that ensures object graph consistency). >As a result the solution with constructor will not work for persistent >objects, as deserialization must be able to return an object that is >already in memory (not necessarily create a new one every time). So I am >looking in the direction of "readResolve()" method supported by Java >serialization mechanism >(http://java.sun.com/j2se/1.4.2/docs/api/java/io/Serializable.html). It(Continue reading)
>
> Andrus
>
>> On Mar 31, 2005, at 11:43 AM, Eric Schneider wrote:
>>
>>> Erik,
>>>
>>>> I'm going to start using Cayenne "in anger" shortly
>>>
>>> Welcome to the community...i guess?? Hopefully we can make your
>>> experience less awful.
>>
>> Haha! I think I was misinterpreted using an expression I never use.
>> I
>> first came across the expression "in anger" here:
>>
>>
I have no choices here. FileMaker supplies a DataDirect SequeLink
driver which is of very disappointing quality. The latest version
stops even iSQL-Viewer from working.
So today I installed MySQL, and I'll see if I have time to explore
Cayenne with that, then try the hand-coded approach you suggest.
Thanks again,
Nick.
Andrus Adamchik wrote:
> I have no experience with FileMaker... Can you doublecheck that
> CayenneModeler uses the same JDBC driver as you've used with iSQL-Viewer?
> Also is there a "native" pure Java JDBC driver for FileMaker that is not
> going via ODBC ? You will likely have better chances with it than with
> JDBC/ODBC bridge.
>
> And of course if nothing works, you can always enter entities by hand in
> the Modeler or in the XML.
>
> Andrus
>
>
>
>
RSS Feed