ScheduleEventImpl using following properties
private String id;
private String title;
private Date startDate;
private Date endDate;
is it possible to implement a entity class using Long id instead of String id
Any clue?
![Question :?:](./images/smilies/icon_question.gif)
thanks
Code: Select all
private Long myId;
public Long getMyId() {
...
}
public String getId() {
if (myId == null)
return null;
else
return myId.toString();
}
Code: Select all
@Entity
public class CalendarEvent implements ScheduleEvent {
@Id @GeneratedValue
private Long dbId;
@Transient
private String id;
private String title;
private Date startDate;
private Date endDate;
private String content;
private String remarks;
private boolean allDay = true;
private String styleClass;
private Object data;
getter setter ....
}
Users browsing this forum: No registered users and 27 guests