use of javax.persistence.Transient in project head by mifos.
the class RESTApprovalEntity method getApprovalMethod.
@Transient
public ApprovalMethod getApprovalMethod() throws Exception {
if (approvalMethod == null) {
ObjectMapper om = new ObjectMapper();
approvalMethod = om.readValue(getMethodContent(), ApprovalMethod.class);
}
return approvalMethod;
}
use of javax.persistence.Transient in project opennms by OpenNMS.
the class BridgeBridgeLink method printTopology.
@Transient
public String printTopology() {
final StringBuilder strbfr = new StringBuilder();
strbfr.append("bridge link:[nodeid:[");
strbfr.append(getNode().getId());
strbfr.append("], bridgeport:");
strbfr.append(getBridgePort());
strbfr.append(", designatednodeid:[");
strbfr.append(getDesignatedNode().getId());
strbfr.append("], designatedbridgeport: ");
strbfr.append(getDesignatedPort());
strbfr.append("]\n");
return strbfr.toString();
}
use of javax.persistence.Transient in project OpenOLAT by OpenOLAT.
the class AssessmentTestSession method getFinalScore.
/**
* @return The score + manual score
*/
@Transient
public default BigDecimal getFinalScore() {
BigDecimal finalScore = getScore();
BigDecimal manualScore = getManualScore();
if (finalScore == null) {
finalScore = manualScore;
} else if (manualScore != null) {
finalScore = finalScore.add(manualScore);
}
return finalScore;
}
use of javax.persistence.Transient in project siesta by cadenzauk.
the class MethodUtilTest method annotationsPresent.
@Test
void annotationsPresent() {
Method method = MethodUtil.fromReference(TestDerivedClass.class, TestClass::method2);
Stream<Transient> annotations = MethodUtil.annotations(Transient.class, method);
assertThat(annotations.count(), is(1L));
}
use of javax.persistence.Transient in project simplejpa by appoxy.
the class AnnotationManager method putMethods.
private void putMethods(AnnotationInfo ai, Class c) {
Method[] methods = c.getDeclaredMethods();
for (Method method : methods) {
// logger.fine("method=" + method.getName());
String methodName = method.getName();
if (!methodName.startsWith("get"))
continue;
// System.out.println("method=" + methodName);
if (config.isGroovyBeans() && (methodName.equals("getProperty") || methodName.equals("getMetaClass")))
continue;
Transient transientM = method.getAnnotation(Transient.class);
// we don't save this one
if (transientM != null)
continue;
ai.addGetter(method);
}
}
Aggregations