From jbosstools-commits at lists.jboss.org Tue Mar 24 05:21:04 2009 Content-Type: multipart/mixed; boundary="===============5376941474859480042==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r14305 - trunk/hibernatetools/docs/reference/en/modules. Date: Tue, 24 Mar 2009 05:21:04 -0400 Message-ID: --===============5376941474859480042== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: ochikvina Date: 2009-03-24 05:21:04 -0400 (Tue, 24 Mar 2009) New Revision: 14305 Modified: trunk/hibernatetools/docs/reference/en/modules/plugins.xml Log: https://jira.jboss.org/jira/browse/JBDS-632 - JPA Generate Entities Wizard = ui is changed. The "Hibernate support for Dali plugins in Eclipse WTP" chap= ter is updated. Modified: trunk/hibernatetools/docs/reference/en/modules/plugins.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/hibernatetools/docs/reference/en/modules/plugins.xml 2009-03-24 0= 9:19:13 UTC (rev 14304) +++ trunk/hibernatetools/docs/reference/en/modules/plugins.xml 2009-03-24 0= 9:21:04 UTC (rev 14305) @@ -12,7 +12,8 @@ Hibernate Eclipse Tools include wizards for creating Hibernate m= apping files, configuration files (.cfg.xml), revenge.xml as well as wizards for a= djusting Console Configuration and Code Generation. Special structured and XML editor= s, editors for executing - HQL and Criteria queries are also provided in Hibernate Console. Ref= er to Key Features section = to find all benefits that you + HQL and Criteria queries are also provided in Hibernate Console. Ref= er to Key Features section to = find all benefits that you can take advantage of while using the tools within Eclipse. = @@ -837,27 +838,24 @@ strategy. - = + Detect one-to-one associations - = + - - Reverse engineering detects one-to-one associations via = primary key and both hbm.xml and annotation generation generates the proper= code for it. - - - The detection is enabled by default (except for Seam 1.2= and Seam 2.0) reverse engineering. - For Hibernate Tools generation there is a checkbox to di= sable if not wanted. - = - + Reverse engineering detects one-to-one associations= via primary key and both + hbm.xml and annotation generation generates the proper c= ode for it. + The detection is enabled by default (except for Sea= m 1.2 and Seam 2.0) + reverse engineering. For Hibernate Tools generation ther= e is a checkbox to disable + if not wanted. - = - = - = = + + + Use custom templates @@ -1239,13 +1237,13 @@ Tip: = - If the property is a directory, it is - possible to browse directories in the Value field. + If the property is a directory, it is possible to browse dir= ectories in the Value + field. - = +
Specifying the Property Value - = + @@ -1525,7 +1523,8 @@ (including usertypes) if the default rules are not applicable. Here = again to see the database tables press Refresh - button underneath. More about type mappings you can find= further in the Type Mappings section. + button underneath. More about type mappings you can find= further in the Type Mappings section. =
Type Mappings Page @@ -1897,54 +1896,116 @@ support Eclipse Dali integration what now makes it possible to use a= Hibernate as a complete JPA development platform. = - When starting your new JPA project from - New > Other... > JPA > JPA Project + When starting a new JPA project from + New > Other > JPA > JPA Project (or simply - New > JPA Project - in JPA Perspective) on the JPA Face= t page you'll be - prompted to choose Hibernate as a target platform. + New > JPA Project + in JPA Perspective), the first wiza= rd page looks as + follows. =
+ Starting JPA Project + + + + + +
+ + It's possible here to select a target runtime and change th= e project + configuration, or you can leave everything as it is. + + On the JPA Facet page you should choose Hibernate as a target pl= atform. Also select the + proper database connection, if it is defined, or add a new one by cl= icking the + Add connection + link. + + Hitting + Finish + will generate the project. + +
Targeting at Hibernate Platform - +
= + + Note: + + Please note, if you choose Hibernate as a platform while creat= ing a JPA/Dali project, a + Hibernate Console Configuration for the project is created automat= ically when the + wizard finishes its work. It allows a full usage of Hibe= rnate Tools + features without additional setup. + + By enabling Hibernate platform specific features you can now gen= erate DDL and Entities. For that find - JPA Tools > Generate DDL.../Generate Entities... + JPA Tools > Generate DDL/Generate Entities options in the context menu of your JPA project. =
Generate DDL/Entities - +
= - The Generate DDL/Entities wizards first will ask you to choose t= he Console - Configuration. + + Note: = + Please, remember to put the proper database driver to the clas= spath of your + project. + + + The Generate DDL/Entities wizards first wil= l ask you to choose the directory where all + output will be written. +
Generate Entities Wizard - +
= - - Note: + To generate entities you can use: = - Please note, if you choose Hibernate as a platform and leave t= he Target Runtime = - with <none>, the wizard does not require you to have a Hibernate Console Configuration. A Hibernate Console Con= figuration is created when the wizard finishes its work. - + + + a Hibernate Console Configuration (proposed by default) + Just make sure that the + Use Console Configuration + checkbox is selected and choose a needed configuration= from the + Console + configurations list box. + = +
+ Generate Entities Wizard + + + + + +
+
+
+ + + + or a DTP connection directly + Just uncheck + Use Console Configuration + and adjust database settings. + + + + Thus, you can now have the Hibernate runtime support in Eclipse = JPA projects. --===============5376941474859480042==--