Esempio n. 1
0
 /**
  * To-many relationship, resolved on first access (and after reset). Changes to to-many relations
  * are not persisted, make changes to the target entity.
  */
 public List<Movie> getMovieList() {
   if (movieList == null) {
     if (daoSession == null) {
       throw new DaoException("Entity is detached from DAO context");
     }
     MovieDao targetDao = daoSession.getMovieDao();
     List<Movie> movieListNew = targetDao._querySearchQuery_MovieList(id);
     synchronized (this) {
       if (movieList == null) {
         movieList = movieListNew;
       }
     }
   }
   return movieList;
 }
Esempio n. 2
0
 /** called by internal mechanisms, do not call yourself. */
 public void __setDaoSession(DaoSession daoSession) {
   this.daoSession = daoSession;
   myDao = daoSession != null ? daoSession.getSearchQueryDao() : null;
 }