Created
          April 3, 2017 21:49 
        
      - 
      
- 
        Save cosbor11/bc8f01ef467afcd3eb04dc33db18214f to your computer and use it in GitHub Desktop. 
    Recipe managed entity for Cook Book Android application
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | @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