You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by Tilmann <ti...@gmx.de> on 2016/04/26 10:24:58 UTC
Tests for JDO-751 - Optional
Hi,
I have a question.
I'm working on the test for Optional in queries.
Michael already pointed me in the right direction, and the idea was to
add something like "Optional<Employee> spouse" and "Optional<Object>
additionalData" to Employees.
This allows testing of Optional<PC> and Optional<PC or not PC>.
It seems there are over 20 .orm files and .sql files I need to adapt.
Before I start doing that, I wanted to ask, is this correct, or is there
a better/easier way?
Cheers,
Tilmann
Re: Tests for JDO-751 - Optional
Posted by Craig Russell <cr...@oracle.com>.
It might be easier to create a new model/orm/sql/jdo to test this.
Craig
> On Apr 26, 2016, at 1:24 AM, Tilmann <ti...@gmx.de> wrote:
>
> Hi,
> I have a question.
> I'm working on the test for Optional in queries.
> Michael already pointed me in the right direction, and the idea was to add something like "Optional<Employee> spouse" and "Optional<Object> additionalData" to Employees.
> This allows testing of Optional<PC> and Optional<PC or not PC>.
>
> It seems there are over 20 .orm files and .sql files I need to adapt.
>
> Before I start doing that, I wanted to ask, is this correct, or is there a better/easier way?
>
> Cheers,
> Tilmann
Craig L Russell
Architect
craig.russell@oracle.com
P.S. A good JDO? O, Gasp!