Re: problem with AbstractEntityModel from Igor Vaynberg

2014-05-15 Thread Yahoo
delObject().getKunde().addNachweis(nachwe iseform.getModelObject()); may be causing the problem if hibernate tries to save kunde with nachweiseform.getModelObject() which is a new object with a null id. You may try to move this line to saveNachweise(). On Mon, May 5, 2014 at 2:54 PM, Yahoo wrote

Re: problem with AbstractEntityModel from Igor Vaynberg

2014-05-05 Thread Yahoo
t that everything is saved ok in the db. Either way the AbstractEntityModel has nothing to do with how properties of the model object are stored in the db, so I still believe the problem is somewhere else in your code. Marios On Mon, May 5, 2014 at 11:26 AM, Yahoo wrote: First I have to

Re: problem with AbstractEntityModel from Igor Vaynberg

2014-05-05 Thread Yahoo
the model and loaded them from the Database and implanted them newly in Kunde before storing. My hope was to avoid this by using AbstractEntityModel.This works for all Dependencies which are set in the Form On Sun, May 4, 2014 at 1:02 PM, Yahoo wrote: I have a suspicion: I have defene

Re: problem with AbstractEntityModel from Igor Vaynberg

2014-05-04 Thread Yahoo
.getKunde().addNachweis(nachweiseform.getModelObject()); } } after opening the form you see the Id of Kunde after save it disappears. add(nachweiseform); When I set the recursive part later same result When I try to set the recursive part later I get Am 04.05.2014 08:55, schrieb m

Re: problem with AbstractEntityModel from Igor Vaynberg

2014-05-04 Thread Yahoo
.getKunde().addNachweis(nachweiseform.getModelObject()); } } after opening the form you see the Id of Kunde after save it disappears. add(nachweiseform); When I set the recursive part later same result When I try to set the recursive part later I get the same result Am 04.05.2014

Re: problem with AbstractEntityModel from Igor Vaynberg

2014-05-03 Thread Yahoo
lizing and everything should work just fine. On Thu, May 1, 2014 at 10:30 PM, Yahoo wrote: Ok,thank you, that's it. My Entity has a lot of MANYTOONE relationships which are set byDropDownChoices. In the case of a new entity, do I have to load all these Entities too and to save t

Re: problem with AbstractEntityModel from Igor Vaynberg

2014-05-01 Thread Yahoo
u, May 1, 2014 at 3:42 PM, Yahoo wrote: I tried the AbstractEntityModel <http://http://wicketinaction. com/2008/09/building-a-smart-entitymodel/> from Igor Vaynberg but I didn't get solved the @Dependency annotation from Vaynbergs salve. Is there another solution for the Hibernate integrat

problem with AbstractEntityModel from Igor Vaynberg

2014-05-01 Thread Yahoo
I tried the AbstractEntityModel from Igor Vaynberg but I didn't get solved the @Dependency annotation from Vaynbergs salve. Is there another solution for the Hibernate integration for models. Best regards Heiner

Re: peculiarities with wicket hibernate

2014-04-17 Thread Yahoo
Solved: It was the definition of the equals function in the hibernate beans. Am 14.04.2014 10:29, schrieb Yahoo: I got a step further with the following definitions I succeded to Insert the ManyToOne relationships. Only the DropDownChoices don't write the changes back in the Model: I

Re: peculiarities with wicket hibernate

2014-04-14 Thread Yahoo
ownChoice obkeinkontakt = new DropDownChoice("objektsuch", makeChoicesObjektsuch,objektsuchchoicerenderer); add(obkeinkontakt); final DropDownChoice objektart = new DropDownChoice("objektart", makeChoicesObjektart,objektartchoicerenderer); add(objektart); Am 14.04.2014 09:39, schr

peculiarities with wicket hibernate

2014-04-14 Thread Yahoo
I serarated the hibernate part in an own maven modul. I the tests in this modul everything works well. I use a lot of many to one relationships. In the web application I get sometimes problems, that the key of a many to one relationship is not written or the DropDownChoice does'nt write the chang