From: Kal A. <ka...@te...> - 2005-09-01 08:12:16
|
Hi George, It sounds like the association role has lost its reference to its association in the database. There is no easy fix for this = programmatically. I think you might have to look in the database tables to try and figure = out what can be deleted.=20 However, what would be important would be to find out how the reference = got lost. E.g. can you tell what association it should be in, and can you = see if that association still exists. Or perhaps you called = association.remove() and the code did not remove the association roles (in which case perhaps there are other association roles with no parent association in your = topic map). Cheers, Kal -----Original Message----- From: tm4...@li... [mailto:tm4...@li...] On Behalf Of George = Tryfon Sent: 29 August 2005 20:08 To: tm4...@li... Subject: [TM4J-users] corrupted AssociationRole in hibernate / MySQL Hello, I am developing a topic map server using MySQL / hibernate (It will be free to be used with a touchgraph front end editor, in a = couple of months time) The problem: Somehow, a corrupted AssociationRole is created inside the database. The AssociationRole has "type" and "player", but has NO "Association". I am accessing it using: Set associationRoles =3D player.getRolesPlayed (); AssociationRole arProblematic =3D ...; Association a =3D arProblematic.getAssociation (); and a =3D=3D null (!) I try to : arProblematic.remove (); and I have a NullPointerException while the arProblematic is not = removed. I can't even remove the player because it is connected with the arProblematic do you have any ideas on how should I deal with this situation programmatically? Thank you for your help Cheers George TAKT research group ____________________________________________________________________ http://www.freemail.gr - =E4=F9=F1=E5=DC=ED =F5=F0=E7=F1=E5=F3=DF=E1 = =E7=EB=E5=EA=F4=F1=EF=ED=E9=EA=EF=FD = =F4=E1=F7=F5=E4=F1=EF=EC=E5=DF=EF=F5. http://www.freemail.gr - free email service for the Greek-speaking. ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle = Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & = QA Security * Process Improvement & Measurement * = http://www.sqe.com/bsce5sf _______________________________________________ Tm4j-users mailing list Tm4...@li... https://lists.sourceforge.net/lists/listinfo/tm4j-users |