Example #1
0
 /** All field constructor */
 public Task(
     Integer id,
     Integer userId,
     String title,
     String content,
     java.math.BigDecimal goalMoney,
     String startTime,
     String endTime,
     Integer minSupporter,
     String place,
     Timestamp createdTime,
     Integer visibleType,
     Integer joinType,
     Integer type,
     Integer status) {
   // primary keys
   setId(id);
   // attributes
   setTitle(title);
   setContent(content);
   setGoalMoney(goalMoney);
   setStartTime(startTime);
   setEndTime(endTime);
   setMinSupporter(minSupporter);
   setPlace(place);
   setCreatedTime(createdTime);
   setVisibleType(visibleType);
   setJoinType(joinType);
   setType(type);
   setStatus(status);
   // parents
   this.userId = new User();
   this.userId.setId(userId);
   setUserId_(userId);
 }