Database Reference
In-Depth Information
package de.sample.structr.demo1;
import java.util.List;
import org.structr.core.entity.AbstractNode;
import org.structr.core.property.Property;
import org.structr.core.property.StartNodes;
public class City extends AbstractNode {
public static Property<List<Friend>> people
= new StartNodes<>("people", LiveIn.class);
}
Listing 1.3: City.java
package de.sample.structr.demo1;
import java.util.List;
import org.structr.core.entity.AbstractNode;
import org.structr.core.property.EndNode;
import org.structr.core.property.EndNodes;
import org.structr.core.property.Property;
public class Friend extends AbstractNode {
public static Property<List<Friend>>
friends = new EndNodes<>("friends",
Friends.class);
public static Property<City>
city = new EndNode<>("city", LiveIn.class);
}
Listing 1.4: Friend.java
Search WWH ::




Custom Search