Re: [basedb-devel] base or hibernate bug?

2011-01-21 Thread Bob MacCallum
Thanks very much - that did the trick.

I should have looked more carefully at the google results, with
hindsight, the answer was actually there! (a changeset for the
documentation)

On Fri, Jan 21, 2011 at 1:46 PM, Nicklas Nordborg  wrote:
>
>> It used to work on 2.12.x but I'm having trouble reproducing that now
>> because I don't have a database with the correct schema easily to hand
>> (we could dig up an old backup...).
>>
>> After some detective work, I believe it's something to do with
>> http://dev.thep.lu.se/base/ticket/1350
>> and
>> http://dev.thep.lu.se/base/changeset/5026/trunk/src/core/net/sf/basedb/core/data/ReporterData.java
>>
>> Should we change our code?
>> ("Microarray" is one of our object classes)
>
> Yes, I think this is due to changes in ticket 1350. It is known that
> this may affect backwards compatibility and it is mentioned in the
> documentation:
> http://base.thep.lu.se/chrome/site/latest/html/appendix/appendix.incompatible.html#appendix.incompatible.2.13
>
> There is also code snippet that illustrates how to fix the problem.
> Basically you'll need something like:
>
> featQuery.join(Hql.leftJoin(null, "reporter", Item.REPORTER.getAlias(),
> null, true));
>
> Hope this helps.
>
> /Nicklas
>
>
> --
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> ___
> basedb-devel mailing list
> basedb-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/basedb-devel
>

--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
basedb-devel mailing list
basedb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/basedb-devel


Re: [basedb-devel] base or hibernate bug?

2011-01-21 Thread Nicklas Nordborg

> It used to work on 2.12.x but I'm having trouble reproducing that now
> because I don't have a database with the correct schema easily to hand
> (we could dig up an old backup...).
>
> After some detective work, I believe it's something to do with
> http://dev.thep.lu.se/base/ticket/1350
> and
> http://dev.thep.lu.se/base/changeset/5026/trunk/src/core/net/sf/basedb/core/data/ReporterData.java
>
> Should we change our code?
> ("Microarray" is one of our object classes)

Yes, I think this is due to changes in ticket 1350. It is known that 
this may affect backwards compatibility and it is mentioned in the 
documentation:
http://base.thep.lu.se/chrome/site/latest/html/appendix/appendix.incompatible.html#appendix.incompatible.2.13

There is also code snippet that illustrates how to fix the problem. 
Basically you'll need something like:

featQuery.join(Hql.leftJoin(null, "reporter", Item.REPORTER.getAlias(), 
null, true));

Hope this helps.

/Nicklas


--
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
___
basedb-devel mailing list
basedb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/basedb-devel