https://git.oschina.net/wenjieyatou/hibernate_OR_Mapping
请参考git代码。基本原理是自己写了一个session,然后用反射机制模拟数据库存储机制。