hibernate 继承映射joined-subclass

xml version="1.0" ?> DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" > < hibernate-mapping package = "com.lidongyang.hibernate" >     < class name = "Person" table = "PERSON" >         < id name = "id" type = "java.lang.Integer" >             < column name = "ID" />             < generator class = "native" />         id >         < property name = "name" type = "java.lang.String" >             < column name = "NAME" />         property >         < property name = "age" type = "java.lang.Integer" >             < column name = "AGE" />         property >         < joined-subclass name = "Student" table = "STudent" >              < key column = "Student_id" > key >              < property name = "school" type = "string" column = "School" > property >         joined-subclass >     class > hibernate-mapping >


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部