Hibernate代码生成模板

来源:互联网 发布:手机电视剧下载软件 编辑:程序博客网 时间:2024/04/27 23:05

Hibernate代码生成模板(

下载地址

 DHibernate(Delphi) NHibernate(.Net) Hibernate(java))

 

  1. {DesignOne}
  2. {CodeTemplate}
  3. {<Object ObjectMapType=SingleObject ObjectName=[*]>
  4. {* This unit is created by DesignOne *}
  5. unit PODO_[ObjectName];
  6. {$M+}
  7. interface
  8. uses
  9.   Classes, SysUtils, DHibernateBase;
  10. type
  11.   T[ObjectName] = class(TDHibernateBase)
  12.   private
  13.     <Property PropertyMapType=ALLPropertys ObjectName=[ObjectName]>
  14.       f[PropertyName]: [VarType];
  15.    </Property>
  16.   published
  17.     <Property PropertyMapType=ALLPropertys ObjectName=[ObjectName]>
  18.       property [PropertyName]: [VarType] read F[PropertyName] write F[PropertyName];
  19.     </Property>
  20.   end;
  21. implementation
  22. { T[ObjectName] }
  23. initialization
  24.   RegisterClass(T[ObjectName]);
  25. end.
  26. </Object>}
  27. {/CodeTemplate}
  28. {/DesignOne}
原创粉丝点击