We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WriteNode.fromBean, ReadNode.toBean,
The text was updated successfully, but these errors were encountered:
Proxy ?
Sorry, something went wrong.
WriteNode.fromJson 인건.. ref 해석이 사실상 불가능하기 때문..( annotation을 붙인다면 가능..)
Json안의 Json은 모두 Child로 해석한다.
toBean은 대충 이렇게....
public void testWhenHasChild() throws Exception { session.tran(new TransactionJob<Void>() { @Override public Void handle(WriteSession wsession) { wsession.pathBy("/dept/dev").property("deptno", 20).property("name", "dev") .addChild("manager").property("name", "bleujin").property("age", 20).parent() .addChild("address").property("city", "seoul").property("bun", 0) ; return null; } }).get() ; Dept dept = session.pathBy("/dept/dev").toBean(Dept.class) ; assertEquals(20, dept.deptNo()) ; assertEquals("dev", dept.name()) ; assertEquals("bleujin", dept.manager().name()) ; assertEquals(20, dept.manager().age()) ; assertEquals("seoul", dept.address().city()) ; assertEquals(0, dept.address().bun()) ; }
toBean은 CGILib를 사용한 Proxy Pattern을 사용하고 있다.
bleujin
No branches or pull requests
WriteNode.fromBean, ReadNode.toBean,
The text was updated successfully, but these errors were encountered: