Hi,

Wouter Zoons wrote:

hi Carlos,

There seems to be a small problem with the animal quiz. You can get through the first set of pages but when you actually want to add a new animal and a corresponding question the system complains with this:

javax.ejb.EJBException: DecisionServiceBean.addNewAnimalWithQuestion: javax.ejb.EJBException: null; CausedByException is: No row with the given identifier exists: 402881e402e7850f0102e78512da0001, of class: org.andromda.samples.animalquiz.decisiontree.DecisionItemImpl (java.lang.Exception)

I found something about this error here: http://www.hibernate.org/206.html

could it be related to the proxies ? can you take a look ?

no, proxies are not enabled by default, so they are not present on the example.


There are two problems, the first one is related with the session.flush() methods at the Service methods, (on HibernateSessionBean.vsl) before upload to fix HIB-62, it was present for all operations, now it is only present when ($operation.returnTypePresent) is false, I think that this should be changed on the hibernate templates. Once we are agree I can change it.

The second one is related with the one to one associations and the unique property, for both yes_sucessor and no_sucessor foreign keys, on Hibernate.hbm.xml.vm, at line 41:
<column name="$otherEnd.columnName" not-null="$otherEnd.required" unique="true"/>


the problem is that unique is true, the first time the example is run, it creates an elephant with both yes_sucessor and no_successor foreign keys to false.
when trying to insert the second element, and before inserting the question (and update the animal), I get an error on no_succesor_fk due to duplicates.
If unique is not present it works



Carlos


thanks!

-- Wouter


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Andromda-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-devel





------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Andromda-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to