延迟在@Ebedded对象内加载@Forumla字段

时间:2019-06-06 22:12:39

标签: hibernate jpa hibernate-mapping

我有一个@Formula字段的@Embedded对象,向其中添加了@Basic(fetch = FetchType.LAZY),并且正在使用字节码增强功能。在实际的@Entity中使用@Formula时,它会注意延迟加载。 @Formula是@Embedded的一部分时,似乎没有。有什么办法做到这一点?我想念什么吗?

import com.eviware.soapui.support.XmlHolder

log.info "welcome to canada"

def name=context.expand ('${#TestCase#name}')

log.info context.expand ('${#TestSuite#place}')
//log.info context.expand('${#AddAutomation#id}')//its not going to grab values or properties of other testcases 
def id=testRunner.testCase.testSuite.testCases["AddAutomation"].getPropertyValue("id")

def age=testRunner.testCase.testSuite.setPropertyValue("age","23")
def department=testRunner.testCase.testSuite.testCases["AddAutomation"].setPropertyValue("department","CSE")

def request=log.info testRunner.testCase.testSuite.testCases["AddAutomation"].testSteps["Add"].getPropertyValue("Request")

def xmlnew=new XmlHolder(request)
xmlnew.setNodeValue("\\typ:addEmployee\typ:name","name")

xmlnew.setNodeValue("\\typ:addEmployee\typ:id","id")

xmlnew.setNodeValue("\\typ:addEmployee\typ:age","age")
xmlnew.setNodevalue("\\typ:addEmployee\typ:department","department")

0 个答案:

没有答案