From: <jg...@us...> - 2006-09-20 15:25:28
|
Revision: 68 http://svn.sourceforge.net/surveyforge/?rev=68&view=rev Author: jgongo Date: 2006-09-20 08:25:21 -0700 (Wed, 20 Sep 2006) Log Message: ----------- Eager fetch of internationalized strings Modified Paths: -------------- trunk/surveyforge-util/src/main/java/org/surveyforge/util/InternationalizedString.java Modified: trunk/surveyforge-util/src/main/java/org/surveyforge/util/InternationalizedString.java =================================================================== --- trunk/surveyforge-util/src/main/java/org/surveyforge/util/InternationalizedString.java 2006-09-20 14:52:55 UTC (rev 67) +++ trunk/surveyforge-util/src/main/java/org/surveyforge/util/InternationalizedString.java 2006-09-20 15:25:21 UTC (rev 68) @@ -30,6 +30,7 @@ import javax.persistence.Column; import javax.persistence.Entity; +import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.Id; @@ -57,7 +58,7 @@ @SuppressWarnings("unused") @javax.persistence.Version private int lockingVersion; - @CollectionOfElements + @CollectionOfElements(fetch = FetchType.EAGER) @MapKey(columns = {@Column(name = "locale", length = 25)}) @Column(name = "string", length = 2500) private Map<Locale, String> strings = new HashMap<Locale, String>( ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |