Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Entity
- public class Bu {
- @Id
- @Index
- private Long id;
- @NotNull
- private String name;
- @NotNull
- private Date date;
- @Generated(hash = 726736104)
- public Bu(Long id, @NotNull String name, @NotNull Date date) {
- this.id = id;
- this.name = name;
- this.date = date;
- }
- @Generated(hash = 1400221727)
- public Bu() {
- }
- public Long getId() {
- return this.id;
- }
- public void setId(Long id) {
- this.id = id;
- }
- public String getName() {
- return this.name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public Date getDate() {
- return this.date;
- }
- public void setDate(Date date) {
- this.date = date;
- }
- }
- BuDao buDao = AbsDatabase.getInstance().getDaoSession().getBuDao();
- List<Bu> list = buDao.loadAll();
- Log.e("list" , list.toString());
- E/list: [com.harit.abs.Entity.Bu@5b371c, com.harit.abs.Entity.Bu@d492f25, com.harit.abs.Entity.Bu@2488fa]
Add Comment
Please, Sign In to add comment