anchor.diff:          em.persist(gift);
       }
   }
  +
  +//and of course our entity
  +@Entity
  +public class Gift {
  +    private Long id;
  +    private String name;
  +
  +    @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator="personSeq")
  +    public Long getId() {
  +        return id;
  +    }
  +
  +    public void setId(Long id) {
  +        this.id = id;
  +    }
  +
  +    public String getName() {
  +        return name;
  +    }
  +
  +    public void setName(String name) {
  +        this.name = name;
  +    }
  +}
   --
   
   <1> Inject your entity manager and have fun
  
positive.code:         em.persist(gift);
      }
  }
  --
  
  <1> Inject your entity manager and have fun
  
negative.code: </dependencies>
  --
  
  Annotate your persistent objects with `@Entity`,
  then add the relevant configuration properties in `{config-file}`.
  
  [source,properties]
  --
  