24

数据库中有外键时JavaBean的写法-小四的窝-51CTO博客

 6 years ago
source link: http://blog.51cto.com/13416247/2065870
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
当写表和实体类之间映射的时候,一旦出现外键,要通过外键找到另外一个类,一旦出现外键必须写成类型privateAddressaddress;person表publicclassPerson{privateStringpid;privateStringpname;privateintage;privateAddressaddress;publicAddressgetAddress(){returnad

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK