Java Code Examples for javax.persistence.Transient

The following examples show how to use javax.persistence.Transient. These examples are extracted from open source projects. 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 Project: youkefu   Source File: AiConfig.java    License: 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 2
Source Project: youkefu   Source File: SessionConfig.java    License: 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 3
Source Project: youkefu   Source File: ReportModel.java    License: 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 4
Source Project: youkefu   Source File: SystemConfig.java    License: 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 Project: youkefu   Source File: SystemConfig.java    License: 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 6
Source Project: Exam-Online   Source File: Question.java    License: 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 7
Source Project: youkefu   Source File: Template.java    License: Apache License 2.0 4 votes vote down vote up
@Transient
public String getTitle(){
	return this.groupid ;
}
 
Example 8
Source Project: microservice-istio   Source File: Invoice.java    License: Apache License 2.0 4 votes vote down vote up
@Transient
public void setOrderLine(List<InvoiceLine> orderLine) {
	this.invoiceLine = orderLine;
}
 
Example 9
Source Project: youkefu   Source File: SNSAccount.java    License: Apache License 2.0 4 votes vote down vote up
@Transient
public String getStatus() {
	return status;
}
 
Example 10
Source Project: youkefu   Source File: Scene.java    License: Apache License 2.0 4 votes vote down vote up
@Transient
public String getSessionid() {
	return sessionid;
}
 
Example 11
Source Project: youkefu   Source File: SmsTemplate.java    License: Apache License 2.0 4 votes vote down vote up
@Transient
public String getTitle(){
	return this.groupid ;
}
 
Example 12
Source Project: youkefu   Source File: AgentService.java    License: Apache License 2.0 4 votes vote down vote up
@Transient
public boolean isDisconnect() {
	return this.disconnect;
}
 
Example 13
Source Project: youkefu   Source File: SmsResult.java    License: Apache License 2.0 4 votes vote down vote up
@Transient
public String getTitle(){
	return this.groupid ;
}
 
Example 14
Source Project: youkefu   Source File: KbsTopic.java    License: Apache License 2.0 4 votes vote down vote up
@Transient
public String getSessionid() {
	return sessionid;
}
 
Example 15
Source Project: youkefu   Source File: AgentService.java    License: Apache License 2.0 4 votes vote down vote up
@Transient
public boolean isTip() {
	return this.tip;
}
 
Example 16
Source Project: youkefu   Source File: KbsTopic.java    License: Apache License 2.0 4 votes vote down vote up
@Transient
public int getRowcount() {
	return rowcount;
}
 
Example 17
Source Project: youkefu   Source File: WorkOrders.java    License: Apache License 2.0 4 votes vote down vote up
@Transient
public String getOrderid() {
	return orderid;
}
 
Example 18
Source Project: youkefu   Source File: User.java    License: Apache License 2.0 4 votes vote down vote up
@Transient
public String getSessionid() {
	return sessionid;
}
 
Example 19
Source Project: Exam-Online   Source File: SysUser.java    License: Apache License 2.0 4 votes vote down vote up
@Transient
public List<Byte> getAuthorityIds() {
	return IdEntity.getCollectionIds(getAuthorities());
}
 
Example 20
Source Project: youkefu   Source File: CallOutNames.java    License: Apache License 2.0 4 votes vote down vote up
/**
 * 
 * @return
 */
@Transient
public String getCalltype() {
	return calltype;
}
 
Example 21
Source Project: youkefu   Source File: WorkOrders.java    License: Apache License 2.0 4 votes vote down vote up
@Transient
public int getRowcount() {
	return rowcount;
}
 
Example 22
Source Project: youkefu   Source File: DataModel.java    License: Apache License 2.0 4 votes vote down vote up
@Transient
public String getCurrentagent() {
	return currentagent;
}
 
Example 23
Source Project: youkefu   Source File: KbsTopicComment.java    License: Apache License 2.0 4 votes vote down vote up
@Transient
public Topic getTopic() {
	return topic;
}
 
Example 24
Source Project: youkefu   Source File: KbsTopicComment.java    License: Apache License 2.0 4 votes vote down vote up
@Transient
public User getUser() {
	return user;
}
 
Example 25
Source Project: youkefu   Source File: User.java    License: Apache License 2.0 4 votes vote down vote up
@Transient
public boolean isOnline() {
	return online;
}
 
Example 26
Source Project: Exam-Online   Source File: ExamResult.java    License: Apache License 2.0 4 votes vote down vote up
@Transient
public Integer getRank() {
	return rank;
}
 
Example 27
Source Project: youkefu   Source File: Cube.java    License: Apache License 2.0 4 votes vote down vote up
@Transient
public List<CubeMetadata> getMetadata() {
	return metadata;
}
 
Example 28
Source Project: youkefu   Source File: Cube.java    License: Apache License 2.0 4 votes vote down vote up
@Transient
public List<CubeMeasure> getMeasure() {
	return measure;
}
 
Example 29
Source Project: youkefu   Source File: CallAgent.java    License: Apache License 2.0 4 votes vote down vote up
@Transient
public AtomicInteger getDisnames() {
	return disnames;
}
 
Example 30
Source Project: youkefu   Source File: AgentStatus.java    License: Apache License 2.0 4 votes vote down vote up
@Transient
public int getMaxusers() {
	SessionConfig sessionConfig = ServiceQuene.initSessionConfig(this.orgi) ;
	return sessionConfig!=null ? sessionConfig.getMaxuser() : UKDataContext.AGENT_STATUS_MAX_USER ;
}