如何手工把entity bean映射到一个表?

lifan5748 2005-10-22 10:47:17
我用的是weblogic服务器,手上没有集成开发工具,我如何把一个实体bean映射到一个表?
...全文
79 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
lendoxp 2005-10-23
  • 打赏
  • 举报
回复
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
<!--shortinfo-->
<class name="com.ciws.db.bean.shortInfo.ShortInfo" table="ShortInfo" dynamic-update="true" dynamic-insert="true">
<id column="id" length="4" name="id" type="integer">
<generator class="increment"/>
</id>
<property column="title" length="300" name="title" not-null="false" type="string"/>
<property column="content" length="16" name="content" not-null="false" type="string"/>
<property column="url" length="1024" name="url" not-null="false" type="string"/>
<property column="remark" length="100" name="remark" not-null="false" type="string"/>
<property column="status" length="1" name="status" not-null="false" type="char"/>
</class>
</hibernate-mapping>
mnbvc874 2005-10-23
  • 打赏
  • 举报
回复
O/R MAPPING TOOLS

67,513

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧