package databook.persistence.rule;

import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.annotation.JsonSubTypes.*;

import databook.persistence.rule.rdf.ruleset.*;
import static databook.utils.ModelUtils.*;
	  
public interface PolymorphicDataEntityMixin {
	@JsonProperty("hasPart")
	@JsonTypeInfo(  
		    use = JsonTypeInfo.Id.NAME,  
		    include = JsonTypeInfo.As.PROPERTY,  
		    property = "type")  
	@JsonSubTypes({  
		    @Type(value = DataObject.class, name = "DataObject"),  
		    @Type(value = Collection.class, name = "Collection"),
		    @Type(value = Access.class, name = "Access"),
		    @Type(value = Session.class, name = "Session"),
		    @Type(value = Message.class, name = "Message"),
		    @Type(value = Messages.class, name = "Messages"),
		    @Type(value = User.class, name = "User"),
		    @Type(value = Access.class, name = "Access"),
		    @Type(value = Session.class, name = "Session")})  
	java.util.List<DataEntity> getHasPart();
}

@@ -566,114 +566,8 @@
 %22),%0A
-%09%09    @Type(value = Access.class, name = %22Access%22),%0A%09%09    @Type(value = Session.class, name = %22Session%22),%0A
 %09%09  

clean up