Summary and outline, summary outline

Source: Internet
Author: User

Summary and outline, summary outline

1. Corresponding project: Hibernate_0300_BasicConfiguration
2. Introduce the graphical client of MySQL
3. hibernate. cfg. xml: hbm2ddl. auto
A) create a table first or create an object class first
4. Set up a log environment and configure and display DDL statements
5. Build a JNnit Environment
A) Pay attention to JUnit bugs.
6. hibernate. cfg. xml: show_ SQL
7. hibernate. cfg. xml: format_ SQL
8. The table name and class name are different, and the table name is configured
A) Annotation: @ Table
B) xml: Self-Query
9. The field name and attributes are the same
A) The default value is @ Basic.
B) column is not required in xml.
10. The field names and attribute names are different.
A) Annotation: @ Column
B) xml: Self-Query
11. The persistence field is not required.
A) Annotation: @ Transient
B) do not write xml
12. ing Date and Time types, specifying time precision
A) Annotation: @ Temporal
B) xml: specify the type
13. ing Enumeration type
A) @ Enumerated
B) xml: troublesome
14. field ing position (field or)
A) best practice: keep the field and get set methods consistent.
15. @ Lob
16. Out-of-class: clob blob-type data access
17. Extra-curricular: Custom Hibernate Data Types
18. hibernate type

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.