憋屈了半天,怎么建表还建不上了呢?比如Hibernate输出到控制台的:
create table blur_catalog (id integer not null, name varchar(255), keyWords varchar(255), imgPath varchar(255), catalog_id integer, description varchar(255), sort integer, savePath varchar(255), htmlLink tinyint, defaultName varchar(255), catalogType varchar(255), channelSkin varchar(255), listSkin varchar(255), articleSkin varchar(255), primary key (id))
怎么看都没错,费解,再看hbm.xml配置:
复制内容到剪贴板 程序代码
create table blur_catalog (id integer not null, name varchar(255), keyWords varchar(255), imgPath varchar(255), catalog_id integer, description varchar(255), sort integer, savePath varchar(255), htmlLink tinyint, defaultName varchar(255), catalogType varchar(255), channelSkin varchar(255), listSkin varchar(255), articleSkin varchar(255), primary key (id))
怎么看都没错,费解,再看hbm.xml配置:
复制内容到剪贴板 程序代码
<!-- self -->
<many-to-one name="parentCatalog" column="catalog_id"
class="com.blur.myHibernate.po.article.Catalog">
</many-to-one>
<many-to-one name="parentCatalog" column="catalog_id"
class="com.blur.myHibernate.po.article.Catalog">
</many-to-one>
Tags: 无聊