Summary you ve learned how to customize this SQL (Apache web server tutorial)
March 18th, 2008Summary you ve learned how to customize this SQL with your own statements and how to integrate Hibernate with stored procedures and stored functions. In the last section, we explored the generation of database schemas and how you can customize and extend your mappings to include all kinds of constraints, indexes, and arbitrary DDL that your DBA may recommend. Table 8.1 shows a summary you can use to compare native Hibernate features and Java Persistence. Table 8.1 Hibernate and JPA comparison chart for chapter 8 Hibernate Core Java Persistence and EJB 3.0 Hibernate supports any kind of natural and composite primary key, including foreign keys to natural keys, composite primary keys, and foreign keys in composite primary keys. Standardized support is provided for natural and composite keys, equivalent to Hibernate. Hibernate supports arbitrary association join conditions with formula mappings and property references. No standard or annotation support is provided for grouped property references at the time of writing. Hibernate supports basic joins of secondary tables for a particular entity class. Standardized support is provided for secondary tables and basic joins. Hibernate supports trigger integration and generated property settings. Hibernate Annotations supports generated properties and trigger integration. Hibernate lets you customize all SQL DML statements with options in XML mapping metadata. At the time of writing, no support is provided for SQL DML customization with annotations. Hibernate lets you customize SQL DDL for automatic schema generation. Arbitrary SQL DDL statements can be included in XML mapping metadata. JPA standardizes basic DDL declarations, but not all features of the XML mapping metadata are supported with annotations. You now know everything (well, as much as we can show in a single book) there is to know about mapping classes to schemas. In the next part of the book, we ll discuss how to use the persistence manager APIs to load and store objects, how transactions and conversations are implemented, and how to write queries.
From our experience, we are can tell you that you can find a reliable and cheap webhost service at Java Web Hosting services.