Re: [appfuse-user] Cascading delete from User to my own model objects.

2007-09-19 Thread phamvubinh
Thanks for your help, Mike ::-D. Mike Horwitz wrote: > > Something must have happened! You seem to have actions and the > corresponding > tests for your two new pojos, so it looks as if a fair bit of code has > been > added, either by being generated through a plugin or being hand coded. > Eit

Re: [appfuse-user] Cascading delete from User to my own model objects.

2007-09-19 Thread Michael Horwitz
Something must have happened! You seem to have actions and the corresponding tests for your two new pojos, so it looks as if a fair bit of code has been added, either by being generated through a plugin or being hand coded. Either way this code contains errors that need fixing. The stuff that is br

Re: [appfuse-user] Cascading delete from User to my own model objects.

2007-09-19 Thread phamvubinh
I think so, but I have never changed source code in my appfuse project. All I have done are modifing something in pom.xml file, adding my POJOs (Quan & Phuong) and deploying project by Maven. Now I got those errors, I don't know how to figure out. I'm afraid to break the structure of Appfuse. Can

Re: [appfuse-user] Cascading delete from User to my own model objects.

2007-09-19 Thread Michael Horwitz
You seem to have three basic errors: 1) In action class com.giavaviet.app.webapp.action.PhuongForm on line 39 you are trying to cast a Quan object to be a Phuong object. 2) In action class com.giavaviet.app.webapp.action.PhuongList you are trying to sort a list of Phuong using the column 'id_phuon

Re: [appfuse-user] Cascading delete from User to my own model objects.

2007-09-19 Thread phamvubinh
Thanks for your help, Mike. I can run mvn jetty:run-war without the previous error, but after that, I met some things wrong :-((. Can you help me. You can see my error message below: == Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Tim

Re: [appfuse-user] Cascading delete from User to my own model objects.

2007-09-19 Thread Michael Horwitz
Cascading of delete is not supported in the JPA spec, so you will need to use the @OnDelete Hibernate extension to do it: http://tinyurl.com/22n4wv Mike On 9/19/07, phamvubinh <[EMAIL PROTECTED]> wrote: > > > I have the same error. Any suggestion for this mistake? > Donleyp, have you found the so

Re: [appfuse-user] Cascading delete from User to my own model objects.

2007-09-18 Thread phamvubinh
I have the same error. Any suggestion for this mistake? Donleyp, have you found the solution? Thanks Binh Pham donleyp wrote: > > I am getting the following error when I try to delete a user: > "java.sql.SQLException: ORA-02292: integrity constraint > (FTAP_DEMO.FK1D0C220DF503D155) violated -

[appfuse-user] Cascading delete from User to my own model objects.

2007-06-01 Thread donleyp
I am getting the following error when I try to delete a user: "java.sql.SQLException: ORA-02292: integrity constraint (FTAP_DEMO.FK1D0C220DF503D155) violated - child record found" I looked at the DDL generated by hibernate and it does not contain the cascade delete clause in the alter table state