wisdom-framework / wisdom-orientdb

Wisdom OrientDB integration
Apache License 2.0
2 stars 3 forks source link

models not persisted in db #24

Closed hboumedane closed 9 years ago

hboumedane commented 9 years ago

I have two models mapped with oneToMany relation. when I try to persist the model that hold the relation, nothing happen in the DB (no record in the db). I don't have any error !!

     @Model(value = XXXXX.class)
      private OrientDbCrud<XXXXX,String> _listCrud;

        Event log = new Event();
        log.setEvent(event);

        List<Event> logs = table.getEvents();
        logs.add(log);

        table.setEvents(logs);
        _listCrud.save(table);
barjo commented 9 years ago

Hi, can you tell me more about the two models, if possible giving an equivalent example so that I can reproduce your issue.

hboumedane commented 9 years ago

here an exemple of my models :
http://pastebin.com/Aw5F0spj

barjo commented 9 years ago

It seems related to #23 can you try without the _ convention as prefix of the model class field.

hboumedane commented 9 years ago

thanks for your help your were wright. it's working now.

barjo commented 9 years ago

Duplicate with #23