Skip to content

Instantly share code, notes, and snippets.

@cosbor11
Created April 3, 2017 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cosbor11/bc8f01ef467afcd3eb04dc33db18214f to your computer and use it in GitHub Desktop.
Save cosbor11/bc8f01ef467afcd3eb04dc33db18214f to your computer and use it in GitHub Desktop.
Recipe managed entity for Cook Book Android application
@Entity
public class Recipe extends ManagedEntity
{
@Attribute
@Identifier(generator = IdentifierGenerator.SEQUENCE)
private long recipeId;
@Attribute
private String content;
@Attribute
private String details;
@Relationship(type = RelationshipType.MANY_TO_ONE,
inverse = "recipes",
inverseClass = CookBook.class)
private CookBook cookBook;
//... Getters and setters
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment