zoukankan      html  css  js  c++  java
  • hibernate 的注意事项

    Hibernate 基础配置

    1:对应项目:Hibernate_0300_BasicConfiguration
    2:介绍mysql 的图形化客户端
    3: hibernate .cfg.xml : hbm2ddl.auto
    a):先见表还是 先建 实体类

    4:搭建日志环境并 配置显示DDL 语句
    5: 搭建 junit 环境
    a) 需要注意 junit的bug
    6: hibernate .cfg.xml :show_sql

    7;hibernate。cfg。xml:format_sql

    8:表名 和类名不同 对表名 进行配置

    a:)Annotation:@ table
    b:)xml:自己查询

    9: 字段名和属性 相同
    a:默认为@BASIC
    B: XML 中不用写 column
    10:字段名和属性名不同

    a:Annotation:@Column
    b: xml 自己查询
    11:不需要 psersistece的字段
    a; Annitatio@ Transient

  • 相关阅读:
    web.xml
    web.xml hello1代码分析
    annotation
    injection
    container
    build tool
    version control
    url与uri的区别
    函数式语言
    http协议解析过程
  • 原文地址:https://www.cnblogs.com/w888/p/5320576.html
Copyright © 2011-2022 走看看