99re热这里只有精品视频,7777色鬼xxxx欧美色妇,国产成人精品一区二三区在线观看,内射爽无广熟女亚洲,精品人妻av一区二区三区

ORM映射API管理查看

2018-06-03 17:25 更新

實(shí)體模型Bean與數(shù)據(jù)庫表的ORM映射關(guān)系是在第一次操作該實(shí)體時(shí)生成的,一個(gè)實(shí)體的ORM映射關(guān)系存儲(chǔ)為一個(gè)

org.myhibernate.core.Mapping ,全部的實(shí)體映射關(guān)系存儲(chǔ)在 org.myhibernate.core.Mappings里面,如下示例可以查看字段的映射關(guān)系

Mapping productMapping=Mappings.getMapping(Product.class);
System.out.println("屬性名和數(shù)據(jù)表列映射:"+productMapping.getPropertyColMap());
System.out.println("get方法映射:"+productMapping.getMethod_get_map());
System.out.println("set方法映射:"+productMapping.getMethod_set_map());

輸出如下

屬性名和數(shù)據(jù)表列映射:{id=ID, price=PRICE, madeIn=MADEIN, name=NAME}
get方法映射:{id=getId, price=getPrice, madeIn=getMadeIn, name=getName}
set方法映射:{id=setId, price=setPrice, madeIn=setMadeIn, name=setName}


以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)