From: <hs...@us...> - 2011-12-08 22:15:15
|
Revision: 1000 http://treebase.svn.sourceforge.net/treebase/?rev=1000&view=rev Author: hshyket Date: 2011-12-08 22:15:08 +0000 (Thu, 08 Dec 2011) Log Message: ----------- Overriding fetch mode of matrix (to join) so that we can pull whether the study is published in the PhyloWSMatrixController Modified Paths: -------------- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/Matrix.java Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/Matrix.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/Matrix.java 2011-12-08 16:27:56 UTC (rev 999) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/domain/matrix/Matrix.java 2011-12-08 22:15:08 UTC (rev 1000) @@ -23,6 +23,8 @@ import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; +import org.hibernate.annotations.Fetch; +import org.hibernate.annotations.FetchMode; import org.cipres.treebase.TreebaseUtil; import org.cipres.treebase.domain.AbstractPersistedObject; @@ -320,6 +322,7 @@ */ @ManyToOne(cascade = {CascadeType.MERGE, CascadeType.PERSIST}, fetch = FetchType.LAZY) @JoinColumn(name = "STUDY_ID") + @Fetch(FetchMode.JOIN) public Study getStudy() { return mStudy; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |