Subversion Repositories SmartDukaan

Rev

Rev 23418 | Rev 24085 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23418 Rev 23880
Line 9... Line 9...
9
import javax.persistence.Entity;
9
import javax.persistence.Entity;
10
import javax.persistence.GeneratedValue;
10
import javax.persistence.GeneratedValue;
11
import javax.persistence.GenerationType;
11
import javax.persistence.GenerationType;
12
import javax.persistence.Id;
12
import javax.persistence.Id;
13
import javax.persistence.Table;
13
import javax.persistence.Table;
-
 
14
import javax.persistence.Transient;
14
 
15
 
15
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
16
import com.spice.profitmandi.dao.convertor.LocalDateTimeAttributeConverter;
16
 
17
 
17
@Entity
18
@Entity
18
@Table(name="fofo.prebooking_listing", schema = "fofo")
19
@Table(name="fofo.prebooking_listing", schema = "fofo")
Line 46... Line 47...
46
	private LocalDateTime expireTimestamp = null;
47
	private LocalDateTime expireTimestamp = null;
47
	
48
	
48
	@Convert(converter = LocalDateTimeAttributeConverter.class)
49
	@Convert(converter = LocalDateTimeAttributeConverter.class)
49
	@Column(name = "create_timestamp")
50
	@Column(name = "create_timestamp")
50
	private LocalDateTime createTimestamp = LocalDateTime.now();
51
	private LocalDateTime createTimestamp = LocalDateTime.now();
-
 
52
	
-
 
53
	@Transient
-
 
54
	private String description;
51
 
55
 
52
	public int getId() {
56
	public int getId() {
53
		return id;
57
		return id;
54
	}
58
	}
55
 
59
 
Line 111... Line 115...
111
 
115
 
112
	public void setCreateTimestamp(LocalDateTime createTimestamp) {
116
	public void setCreateTimestamp(LocalDateTime createTimestamp) {
113
		this.createTimestamp = createTimestamp;
117
		this.createTimestamp = createTimestamp;
114
	}
118
	}
115
	
119
	
-
 
120
	public String getDescription() {
-
 
121
		return description;
-
 
122
	}
-
 
123
	
-
 
124
	public void setDescription(String description) {
-
 
125
		this.description = description;
-
 
126
	}
-
 
127
	
116
	public String getFormattedActiveTimestamp(){
128
	public String getFormattedActiveTimestamp(){
117
		if(activeTimestamp == null){
129
		if(activeTimestamp == null){
118
			return null;
130
			return null;
119
		}
131
		}
120
		DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd-MM-YYYY HH:mm");
132
		DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd-MM-YYYY HH:mm");