001    package com.khubla.pragmatach.examples.ebeanexample.pojo;
002    
003    import javax.persistence.Entity;
004    import javax.persistence.GeneratedValue;
005    import javax.persistence.Id;
006    
007    import com.khubla.pragmatach.plugin.ebean.EBeanDAO;
008    
009    /**
010     * @author tome
011     */
012    @Entity
013    public class MyExamplePOJO {
014       /**
015        * primary key
016        */
017       @Id
018       @GeneratedValue
019       private Long id;
020       /**
021        * some name
022        */
023       private String name;
024       /**
025        * an EBean DAO for MyExamplePOJOs
026        */
027       public static EBeanDAO<MyExamplePOJO, Long> dao = new EBeanDAO<MyExamplePOJO, Long>(MyExamplePOJO.class, Long.class);
028    
029       public Long getId() {
030          return id;
031       }
032    
033       public String getName() {
034          return name;
035       }
036    
037       public void setId(Long id) {
038          this.id = id;
039       }
040    
041       public void setName(String name) {
042          this.name = name;
043       }
044    }