|
From: <ja...@us...> - 2006-09-20 14:53:04
|
Revision: 67
http://svn.sourceforge.net/surveyforge/?rev=67&view=rev
Author: javism
Date: 2006-09-20 07:52:55 -0700 (Wed, 20 Sep 2006)
Log Message:
-----------
Bugfix in QuestionnaireElement-Question relation
Modified Paths:
--------------
trunk/surveyforge-core/src/main/java/org/surveyforge/core/survey/QuestionnaireElement.java
Modified: trunk/surveyforge-core/src/main/java/org/surveyforge/core/survey/QuestionnaireElement.java
===================================================================
--- trunk/surveyforge-core/src/main/java/org/surveyforge/core/survey/QuestionnaireElement.java 2006-09-20 13:41:39 UTC (rev 66)
+++ trunk/surveyforge-core/src/main/java/org/surveyforge/core/survey/QuestionnaireElement.java 2006-09-20 14:52:55 UTC (rev 67)
@@ -72,8 +72,7 @@
@Column(unique = true, length = 50)
private String identifier;
/** Each questionnaire element has a {@link Question} that has the text and the structure of the question. */
- @ManyToOne(optional = true, cascade = {CascadeType.ALL})
- @JoinColumn(name = "question_id", insertable = false, updatable = false)
+ @ManyToOne(fetch = FetchType.LAZY, cascade = {CascadeType.ALL})
private Question question = null;
/** A questionnaire element have a {@link RegisterDataElement} to have the info of the data. */
@OneToOne(fetch = FetchType.LAZY, cascade = {CascadeType.ALL})
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|