Author: julien_viet
Date: 2010-02-22 03:51:45 -0500 (Mon, 22 Feb 2010)
New Revision: 1794
Modified:
components/mop/trunk/core/src/main/java/org/gatein/mop/core/api/workspace/content/ContextTypeContainer.java
Log:
fix wrong relationship @ManyToOne -> @OneTone @RelatedMappedBy
Modified:
components/mop/trunk/core/src/main/java/org/gatein/mop/core/api/workspace/content/ContextTypeContainer.java
===================================================================
---
components/mop/trunk/core/src/main/java/org/gatein/mop/core/api/workspace/content/ContextTypeContainer.java 2010-02-22
02:38:07 UTC (rev 1793)
+++
components/mop/trunk/core/src/main/java/org/gatein/mop/core/api/workspace/content/ContextTypeContainer.java 2010-02-22
08:51:45 UTC (rev 1794)
@@ -18,10 +18,7 @@
*/
package org.gatein.mop.core.api.workspace.content;
-import org.chromattic.api.annotations.FormattedBy;
-import org.chromattic.api.annotations.ManyToOne;
-import org.chromattic.api.annotations.OneToMany;
-import org.chromattic.api.annotations.PrimaryType;
+import org.chromattic.api.annotations.*;
import org.gatein.mop.core.api.MOPFormatter;
import java.util.Map;
@@ -38,7 +35,8 @@
@OneToMany
public abstract Map<String, ContextType> getContextTypes();
- @ManyToOne
+ @OneToOne
+ @RelatedMappedBy("mop:contexttypes")
public abstract AbstractCustomization getCustomization();
}
Show replies by date