javax.persistence.Transient Java Examples

The following examples show how to use javax.persistence.Transient. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Question.java    From Exam-Online with Apache License 2.0 5 votes vote down vote up
@Transient
public List<Choice> getAnswers() {
	if (getChoices() != null) {
		return getChoices().stream()
				.filter(e -> e.getAnswer() == true)
				.collect(Collectors.toList());
	}
	return null;
}
 
Example #2
Source File: AiConfig.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Transient
public List<OtherMessageItem> getHot(){
	List<OtherMessageItem> otherMessageItemList = null ;
	if(!StringUtils.isBlank(this.getHotmsg())) {
		try {
			otherMessageItemList = OnlineUserUtils.objectMapper.readValue(this.getHotmsg(), UKTools.getCollectionType(ArrayList.class, OtherMessageItem.class))  ;
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	return otherMessageItemList ;
}
 
Example #3
Source File: SessionConfig.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Transient
public List<SessionConfigItem> getConfig(){
	List<SessionConfigItem> sessionConfigItemList = null ;
	if(!StringUtils.isBlank(this.getWorkinghours())) {
		try {
			sessionConfigItemList = OnlineUserUtils.objectMapper.readValue(this.getWorkinghours(), UKTools.getCollectionType(ArrayList.class, SessionConfigItem.class))  ;
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	return sessionConfigItemList ;
}
 
Example #4
Source File: SystemConfig.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Transient
public String getColor(){
	String color = "color:#32c24d;" ;
	if(!StringUtils.isBlank(this.theme) && this.theme.equals("01")){
		color = "color:#32c24d " ;
	}else if(!StringUtils.isBlank(this.theme) && this.theme.equals("02")){
		color = "color:#32c24d " ;
	}else if(!StringUtils.isBlank(this.theme) && this.theme.equals("03")){
		color = "color:#1E90FF " ;
	}
	return color ;
}
 
Example #5
Source File: ReportModel.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Transient
public ChartProperties getChartProperties() {
	Base64 base64 = new Base64();
	try {
		return chartProperties!=null ? chartProperties : (chartProperties = (this.chartcontent==null?null:(ChartProperties)UKTools.toObject(base64.decode(this.chartcontent))));
	} catch (Exception e) {
		e.printStackTrace();
	}
	return chartProperties;
}
 
Example #6
Source File: SystemConfig.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Transient
public String getStyleColor(){
	String color = "#32c24d  !important;" ;
	if(!StringUtils.isBlank(this.theme) && this.theme.equals("01")){
		color = "#32c24d  !important;" ;
	}else if(!StringUtils.isBlank(this.theme) && this.theme.equals("02")){
		color = "#32c24d  !important;" ;
	}else if(!StringUtils.isBlank(this.theme) && this.theme.equals("03")){
		color = "#1E90FF  !important;" ;
	}
	return color ;
}
 
Example #7
Source File: AgentService.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Transient
public boolean isOnline() {
	return this.online;
}
 
Example #8
Source File: OnlineUser.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Transient
public Contacts getContacts() {
	return contacts;
}
 
Example #9
Source File: SysUser.java    From Exam-Online with Apache License 2.0 4 votes vote down vote up
@Override
@Transient
public boolean isCredentialsNonExpired() {
	return true;
}
 
Example #10
Source File: Report.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Transient
public List<ReportFilter> getReportFilters() {
	return reportFilters;
}
 
Example #11
Source File: MetadataTable.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Transient
public boolean isUserpage() {
	return userpage;
}
 
Example #12
Source File: Cube.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Transient
public List<Dimension> getDimension() {
	return dimension;
}
 
Example #13
Source File: SysUser.java    From Exam-Online with Apache License 2.0 4 votes vote down vote up
@Override
@Transient
public boolean isAccountNonExpired() {
	return true;
}
 
Example #14
Source File: TableProperties.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Transient
public String getKey() {
	return UKTools.genIDByKey(this.id) ;
}
 
Example #15
Source File: JobDetail.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Transient
public String getExceptionMsg() {
	return exceptionMsg;
}
 
Example #16
Source File: AgentService.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Transient
public String getTopic() {
	return "/" + this.orgi + "/" + this.agentno;
}
 
Example #17
Source File: JobDetail.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Transient
public Reporter getReport() {
	return report;
}
 
Example #18
Source File: Reporter.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Transient
public boolean isRound() {
	return round;
}
 
Example #19
Source File: OrdersComment.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Transient
public User getUser() {
	return user;
}
 
Example #20
Source File: WorkOrders.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Transient
public Organ getCurrentorgan() {
	return currentorgan;
}
 
Example #21
Source File: ReportModel.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Transient
public String getChartPropertiesJson() {
	return UKTools.toJson(getChartProperties());
}
 
Example #22
Source File: WorkOrders.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Transient
public Contacts getContacts() {
	return contacts;
}
 
Example #23
Source File: ReportModel.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Transient
public List<DrillDown> getDrilldown() {
	return drilldown;
}
 
Example #24
Source File: ReportModel.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Transient
public List<ReportFilter> getFilters() {
	return filters;
}
 
Example #25
Source File: ReportModel.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Transient
public List<ColumnProperties> getMeasures() {
	return measures;
}
 
Example #26
Source File: ReportModel.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Transient
public List<ColumnProperties> getColproperties() {
	return colproperties;
}
 
Example #27
Source File: ReportModel.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Transient
public List<ColumnProperties> getProperties() {
	return properties;
}
 
Example #28
Source File: EkmKnowledgeMaster.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Transient
public String getKbid() {
	return kbid;
}
 
Example #29
Source File: Cube.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Transient
public String getTable(){
	return "c_d_"+UKTools.md5(this.getId());
}
 
Example #30
Source File: DataProduct.java    From youkefu with Apache License 2.0 4 votes vote down vote up
@Transient
public User getUser() {
	return user;
}