You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Andrey Mashenkov <an...@gmail.com> on 2018/04/02 13:52:49 UTC

Re: apache ignite Id return null

Can you share a reproducer?

On Tue, Mar 27, 2018 at 12:49 PM, hulitao198758 <hu...@lenovo.com> wrote:

>  For example: mysql has two fields create table testa (id bigint not null,
> name varchar (20), primary key (id)) and in Ignite corresponding entity
> class private Long id; private String name; When using springboot to start
> The client creates an entity class object using the object's Set method to
> copy the ID field to the object. SetID (11L); Object. SetName ("hello");
> Then call the IgniteRepository Save method to save the value of the object
> to the Cache, call IgniteRepository FindOne method in the query ID can see
> the contents of the ID, but by connecting the JDBC client insert into
> CacheName (id, name) values (12, 'hello') After inserting data in the
> FindOne method called IgniteRepository, Name field can be seen To content
> but ID returns NULL
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>



-- 
Best regards,
Andrey V. Mashenkov