[Join-cvs] join1/src/main/org/figure8/join/businessobjects/reporting Subscription.java, 1.2, 1.3
Brought to you by:
lbroudoux
|
From: Laurent B. <lbr...@us...> - 2008-02-03 22:35:14
|
Update of /cvsroot/join/join1/src/main/org/figure8/join/businessobjects/reporting In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv32200/businessobjects/reporting Modified Files: Subscription.java Log Message: Fix hibernate association problem Index: Subscription.java =================================================================== RCS file: /cvsroot/join/join1/src/main/org/figure8/join/businessobjects/reporting/Subscription.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Subscription.java 6 Feb 2007 21:32:18 -0000 1.2 --- Subscription.java 3 Feb 2008 22:35:08 -0000 1.3 *************** *** 1,4 **** /** ! * Copyright 2005-2006 the original author or authors. * * Licensed under the Gnu General Pubic License, Version 2.0 (the --- 1,4 ---- /** ! * Copyright 2005-2008 the original author or authors. * * Licensed under the Gnu General Pubic License, Version 2.0 (the *************** *** 56,59 **** --- 56,62 ---- this.mailingList = mailingList; this.creationDate = new Date(); + /* TODO: why this statement makes Hibernate fails with a ClassCastException when + reassociating mailing lists subscriptions proxy with session ? */ + // mailingList.addSubscription(this); } *************** *** 89,93 **** /** ! * @hibernate.many-to-one column="s_mailinglist_fk" not-null="true" * @return The mailing list that is subscribed to */ --- 92,96 ---- /** ! * @hibernate.many-to-one column="n_mailinglist_fk" not-null="true" * @return The mailing list that is subscribed to */ |