package org.minimalj.repository.list;

import org.minimalj.repository.query.Criteria;

public class RelationCriteria extends Criteria {

	private static final long serialVersionUID = 1L;
	
	private final String crossName;
	private final Object relatedId;

	public RelationCriteria(String crossName, Object relatedId) {
		super();
		this.crossName = crossName;
		this.relatedId = relatedId;
	}

	public String getCrossName() {
		return crossName;
	}

	public Object getRelatedId() {
		return relatedId;
	}
}

@@ -84,16 +84,175 @@
 ria;%0D%0A%0D%0A
+/**%0D%0A * A RelationCriteria is a special Criteria that is used internally by%0D%0A * RelationLists that need to load additional element entities.%0D%0A * %3Cp%3E%0D%0A *%0D%0A */%0D%0A
 public c
@@ -293,18 +293,16 @@
 eria %7B%0D%0A
-%0D%0A
 %09private
@@ -348,11 +348,10 @@
 L;%0D%0A
-%09
 %0D%0A
+
 %09pri
@@ -417,23 +417,16 @@
 Id;%0D%0A%0D%0A%09
-public 
 Relation
@@ -477,20 +477,8 @@
  %7B%0D%0A
-%09%09super();%0D%0A
 %09%09th

make constructor package protected to avoid direct use