JBoss Tools SVN: r11271 - branches/jbosstools-3.0.0.Beta1/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/specimen/test/annotated.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2008-10-29 07:07:17 -0400 (Wed, 29 Oct 2008)
New Revision: 11271
Modified:
branches/jbosstools-3.0.0.Beta1/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/specimen/test/annotated/Foto.java
branches/jbosstools-3.0.0.Beta1/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/specimen/test/annotated/Person.java
Log:
JBIDE-3033 - change to Many2One as default annotation
Modified: branches/jbosstools-3.0.0.Beta1/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/specimen/test/annotated/Foto.java
===================================================================
--- branches/jbosstools-3.0.0.Beta1/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/specimen/test/annotated/Foto.java 2008-10-29 11:04:53 UTC (rev 11270)
+++ branches/jbosstools-3.0.0.Beta1/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/specimen/test/annotated/Foto.java 2008-10-29 11:07:17 UTC (rev 11271)
@@ -13,7 +13,7 @@
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
-import javax.persistence.OneToOne;
+import javax.persistence.ManyToOne;
@Entity
public class Foto {
@@ -23,7 +23,7 @@
@Id @GeneratedValue
protected Short id;
- @OneToOne(mappedBy="foto")
+ @ManyToOne
protected Person person;
protected Short width_IDtest;
Modified: branches/jbosstools-3.0.0.Beta1/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/specimen/test/annotated/Person.java
===================================================================
--- branches/jbosstools-3.0.0.Beta1/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/specimen/test/annotated/Person.java 2008-10-29 11:04:53 UTC (rev 11270)
+++ branches/jbosstools-3.0.0.Beta1/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/specimen/test/annotated/Person.java 2008-10-29 11:07:17 UTC (rev 11271)
@@ -15,8 +15,8 @@
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
-import javax.persistence.OneToOne;
import javax.persistence.OneToMany;
+import javax.persistence.ManyToOne;
@Entity
public class Person {
@@ -27,7 +27,7 @@
@OneToMany(mappedBy="documentOwner")
protected Set<Document> documents;
- @OneToOne(mappedBy="person")
+ @ManyToOne
protected Foto foto;
protected Set someTestSet;
16 years, 2 months
JBoss Tools SVN: r11270 - branches/jbosstools-3.0.0.Beta1/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/collect.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2008-10-29 07:04:53 -0400 (Wed, 29 Oct 2008)
New Revision: 11270
Modified:
branches/jbosstools-3.0.0.Beta1/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/collect/CollectEntityInfo.java
Log:
JBIDE-3033 - change to Many2One as default annotation
Modified: branches/jbosstools-3.0.0.Beta1/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/collect/CollectEntityInfo.java
===================================================================
--- branches/jbosstools-3.0.0.Beta1/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/collect/CollectEntityInfo.java 2008-10-29 11:03:57 UTC (rev 11269)
+++ branches/jbosstools-3.0.0.Beta1/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/collect/CollectEntityInfo.java 2008-10-29 11:04:53 UTC (rev 11270)
@@ -290,7 +290,7 @@
while (itVarNames.hasNext()) {
VariableDeclarationFragment var = (VariableDeclarationFragment)itVarNames.next();
String name = var.getName().getIdentifier();
- entityInfo.addReference(name, entityFullyQualifiedName, RefType.ONE2ONE);
+ entityInfo.addReference(name, entityFullyQualifiedName, RefType.MANY2ONE);
}
}
else if (tb.getJavaElement() instanceof BinaryType) {
16 years, 2 months
JBoss Tools SVN: r11269 - trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/collect.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2008-10-29 07:03:57 -0400 (Wed, 29 Oct 2008)
New Revision: 11269
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/collect/CollectEntityInfo.java
Log:
JBIDE-3033 - change to Many2One as default annotation
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/collect/CollectEntityInfo.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/collect/CollectEntityInfo.java 2008-10-29 09:52:00 UTC (rev 11268)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/collect/CollectEntityInfo.java 2008-10-29 11:03:57 UTC (rev 11269)
@@ -290,7 +290,7 @@
while (itVarNames.hasNext()) {
VariableDeclarationFragment var = (VariableDeclarationFragment)itVarNames.next();
String name = var.getName().getIdentifier();
- entityInfo.addReference(name, entityFullyQualifiedName, RefType.ONE2ONE);
+ entityInfo.addReference(name, entityFullyQualifiedName, RefType.MANY2ONE);
}
}
else if (tb.getJavaElement() instanceof BinaryType) {
16 years, 2 months
JBoss Tools SVN: r11268 - in trunk/jsf: tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2008-10-29 05:52:00 -0400 (Wed, 29 Oct 2008)
New Revision: 11268
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/htmlCommandLink.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/htmlCommandLink.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/include.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/include.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/jsFunction.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/loadBundle.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/loadScript.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/loadStyle.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/log.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/mediaOutput.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/mediaOutput.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/outputPanel.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/outputPanel.xhtml.xml
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/src/org/jboss/tools/jsf/vpe/ajax4jsf/template/Ajax4JSFMediaOutput.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/src/org/jboss/tools/jsf/vpe/ajax4jsf/test/Ajax4JsfComponentContentTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-2985, JUnit test for a4j components.
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/src/org/jboss/tools/jsf/vpe/ajax4jsf/template/Ajax4JSFMediaOutput.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/src/org/jboss/tools/jsf/vpe/ajax4jsf/template/Ajax4JSFMediaOutput.java 2008-10-29 08:26:03 UTC (rev 11267)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/src/org/jboss/tools/jsf/vpe/ajax4jsf/template/Ajax4JSFMediaOutput.java 2008-10-29 09:52:00 UTC (rev 11268)
@@ -45,7 +45,7 @@
nsIDOMElement img = visualDocument
.createElement(HTML_TAG_IMG);
- img.setAttribute(ATTR_SRC, "file:///" + getAbsoluteResourcePath(IMG_PATH));
+ img.setAttribute(ATTR_SRC, "file:///" + getAbsoluteResourcePath(IMG_PATH).replace('\\', '/'));
img.setAttribute(ATTR_ALT, ALT_MEDIA_OTPUT);
img.setAttribute(ATTR_WIDTH, "100");
img.setAttribute(ATTR_HEIGHT, "50");
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/htmlCommandLink.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/htmlCommandLink.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/htmlCommandLink.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/htmlCommandLink.xhtml.xml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/htmlCommandLink.xhtml.xml 2008-10-29 09:52:00 UTC (rev 11268)
@@ -0,0 +1,7 @@
+<tests>
+ <test id="htmlCommandLink">
+ <A DIR="" STYLE="-moz-user-modify: read-write;">
+ <SPAN>value</SPAN>
+ </A>
+ </test>
+</tests>
\ No newline at end of file
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/htmlCommandLink.xhtml.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/include.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/include.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/include.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/include.xhtml.xml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/include.xhtml.xml 2008-10-29 09:52:00 UTC (rev 11268)
@@ -0,0 +1,11 @@
+<tests>
+ <test id="include">
+ <DIV
+ STYLE="margin: 3px 0pt; padding: 0pt 5px; background-color: rgb(236, 243, 255); cursor: pointer; font-style: italic; color: rgb(0, 81, 221);"
+ VPE:INCLUDE-ELEMENT="yes">
+ /pages/include/first.xhtml
+ <BR VPE:PSEUDO-ELEMENT="yes"
+ STYLE="font-style: italic; color: green; -moz-user-modify: read-only;"/>
+ </DIV>
+ </test>
+</tests>
\ No newline at end of file
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/include.xhtml.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/jsFunction.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/jsFunction.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/loadBundle.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/loadBundle.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/loadScript.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/loadScript.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/loadStyle.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/loadStyle.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/log.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/log.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/mediaOutput.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/mediaOutput.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/mediaOutput.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/mediaOutput.xhtml.xml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/mediaOutput.xhtml.xml 2008-10-29 09:52:00 UTC (rev 11268)
@@ -0,0 +1,9 @@
+<tests>
+ <test id="mediaOutput">
+ <DIV>
+ <IMG WIDTH="100" HEIGHT="50"
+ SRC="/.*resources/mediaOutput/mediaOutput.jpg/"
+ ALT=" mediaOutput"/>
+ </DIV>
+ </test>
+</tests>
\ No newline at end of file
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/mediaOutput.xhtml.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/outputPanel.xhtml
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/outputPanel.xhtml
___________________________________________________________________
Name: svn:mime-type
+ application/xhtml+xml
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/outputPanel.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/outputPanel.xhtml.xml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/outputPanel.xhtml.xml 2008-10-29 09:52:00 UTC (rev 11268)
@@ -0,0 +1,17 @@
+<tests>
+ <test id="outputPanel">
+ <DIV ID="outputPanel" STYLE="-moz-user-modify: read-write;">
+ <TABLE
+ STYLE="border: 1px dotted rgb(255, 102, 0); padding: 5px; width: 100%;">
+ <TR>
+ <TD>
+ <DIV>
+ <SPAN> Some text </SPAN>
+ <INPUT VALUE="#{rsBean.text1}" READONLY=""/>
+ </DIV>
+ </TD>
+ </TR>
+ </TABLE>
+ </DIV>
+ </test>
+</tests>
\ No newline at end of file
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/resources/ajax4jsfTests/WebContent/pages/components/outputPanel.xhtml.xml
___________________________________________________________________
Name: svn:mime-type
+ text/xml
Name: svn:eol-style
+ native
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/src/org/jboss/tools/jsf/vpe/ajax4jsf/test/Ajax4JsfComponentContentTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/src/org/jboss/tools/jsf/vpe/ajax4jsf/test/Ajax4JsfComponentContentTest.java 2008-10-29 08:26:03 UTC (rev 11267)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.ajax4jsf.test/src/org/jboss/tools/jsf/vpe/ajax4jsf/test/Ajax4JsfComponentContentTest.java 2008-10-29 09:52:00 UTC (rev 11268)
@@ -36,39 +36,39 @@
}
public void testHtmlCommandLink() throws Throwable {
- assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ performContentTest("components/htmlCommandLink.xhtml");//$NON-NLS-1$
}
public void testJsFunction() throws Throwable {
- assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ performInvisibleTagTest("components/jsFunction.xhtml", "jsFunction"); //$NON-NLS-1$ //$NON-NLS-2$
}
public void testInclude() throws Throwable {
- assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ performContentTest("components/include.xhtml");//$NON-NLS-1$
}
public void testLoadBundle() throws Throwable {
- assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ performInvisibleTagTest("components/loadBundle.xhtml", "loadBundle"); //$NON-NLS-1$ //$NON-NLS-2$
}
public void testLoadScript() throws Throwable {
- assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ performInvisibleTagTest("components/loadScript.xhtml", "loadScript"); //$NON-NLS-1$ //$NON-NLS-2$
}
public void testLoadStyle() throws Throwable {
- assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ performInvisibleTagTest("components/loadStyle.xhtml", "loadStyle"); //$NON-NLS-1$ //$NON-NLS-2$
}
public void testLog() throws Throwable {
- assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ performInvisibleTagTest("components/log.xhtml", "log"); //$NON-NLS-1$ //$NON-NLS-2$
}
public void testMediaOutput() throws Throwable {
- assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ performContentTest("components/mediaOutput.xhtml");//$NON-NLS-1$
}
public void testOutputPanel() throws Throwable {
- assertTrue("it is necessary to add a body of the test ", false);//$NON-NLS-1$
+ performContentTest("components/outputPanel.xhtml");//$NON-NLS-1$
}
public void testPage() throws Throwable {
16 years, 2 months
JBoss Tools SVN: r11267 - trunk/hibernatetools/docs/reference/en/modules.
by jbosstools-commits@lists.jboss.org
Author: AnthonyHib
Date: 2008-10-29 04:26:03 -0400 (Wed, 29 Oct 2008)
New Revision: 11267
Modified:
trunk/hibernatetools/docs/reference/en/modules/reverseengineering.xml
Log:
HBX-524 : Reverse of one-to-one relationships
Modified: trunk/hibernatetools/docs/reference/en/modules/reverseengineering.xml
===================================================================
--- trunk/hibernatetools/docs/reference/en/modules/reverseengineering.xml 2008-10-29 08:25:03 UTC (rev 11266)
+++ trunk/hibernatetools/docs/reference/en/modules/reverseengineering.xml 2008-10-29 08:26:03 UTC (rev 11267)
@@ -95,7 +95,12 @@
<foreign-key constraint-name="ORDER_CUST">
<many-to-one property="customer"/>
<set property="orders"/>
- </foreign-key>
+ </foreign-key>
+ <!-- can also control a pure (shared pk) one-to-one -->
+ <foreign-key constraint-name="ADDRESS_PERSON">
+ <one-to-one exclude="false"/>
+ <inverse-one-to-one exclude="true"/>
+ </foreign-key>
</table>
</hibernate-reverse-engineering>]]></programlisting>
@@ -695,7 +700,7 @@
<property><foreign-key></property>
</emphasis> has two purposes. One for allowing to define foreign-keys in databases that
does not support them or does not have them defined in their schema. Secondly, to allow
- defining the name of the resulting properties (many-to-one and one-to-many's).</para>
+ defining the name of the resulting properties (many-to-one, one-to-one and one-to-many's).</para>
<programlisting role="XML"><![CDATA[<foreign-key
constraint-name="foreignKeyName"
@@ -709,6 +714,13 @@
exclude="true|false"/>
<set
property="aCollectionName"
+ exclude="true|false"
+
+ <one-to-one
+ property="aPropertyName"
+ exclude="true|false"/>
+ <inverse-one-to-one
+ property="aPropertyName"
exclude="true|false"/>
</foreign-key>]]></programlisting>
<table frame="topbot">
@@ -738,7 +750,7 @@
<entry><para>constraint-name</para></entry>
<entry><para>Name of the foreign key constraint. Important when
- naming many-to-one and set. It is the constraint-name that is used to link the
+ naming many-to-one, one-to-one and set. It is the constraint-name that is used to link the
processed foreign-keys with the resulting property names.</para></entry>
<entry><para>Required</para></entry>
@@ -800,6 +812,26 @@
Exclude can be used to explicitly define that it should be created or not.</para></entry>
<entry><para>Optional</para></entry>
+ </row>
+
+ <row>
+ <entry><para>one-to-one</para></entry>
+
+ <entry><para>Defines that a one-to-one should be created and the
+ property attribute specifies the name of the resulting property. Exclude can be
+ used to explicitly define that it should be created or not.</para></entry>
+
+ <entry><para>Optional</para></entry>
+ </row>
+
+ <row>
+ <entry><para>inverse-one-to-one</para></entry>
+
+ <entry><para>Defines that an inverse one-to-one should be created based on this foreign-key
+ and the property attribute specifies the name of the resulting property.
+ Exclude can be used to explicitly define that it should be created or not.</para></entry>
+
+ <entry><para>Optional</para></entry>
</row>
</tbody>
16 years, 2 months
JBoss Tools SVN: r11265 - branches/jbosstools-3.0.0.Beta1/ws/plugins/org.jboss.tools.ws.creation.ui.
by jbosstools-commits@lists.jboss.org
Author: dennyxu
Date: 2008-10-29 04:05:11 -0400 (Wed, 29 Oct 2008)
New Revision: 11265
Modified:
branches/jbosstools-3.0.0.Beta1/ws/plugins/org.jboss.tools.ws.creation.ui/plugin.xml
Log:
JBIDE-3005:JBossWS Property Page isn't defined correctly
Modified: branches/jbosstools-3.0.0.Beta1/ws/plugins/org.jboss.tools.ws.creation.ui/plugin.xml
===================================================================
--- branches/jbosstools-3.0.0.Beta1/ws/plugins/org.jboss.tools.ws.creation.ui/plugin.xml 2008-10-29 07:19:52 UTC (rev 11264)
+++ branches/jbosstools-3.0.0.Beta1/ws/plugins/org.jboss.tools.ws.creation.ui/plugin.xml 2008-10-29 08:05:11 UTC (rev 11265)
@@ -68,6 +68,14 @@
class="org.jboss.tools.ws.creation.ui.project.facet.JBossWSPropertyPage"
id="org.jboss.tools.ws.creation.ui.page"
name="JBossWS Runtime">
+ <enabledWhen>
+<adapt
+type="org.eclipse.core.resources.IProject">
+<test
+property="org.eclipse.wst.common.project.facet.core.projectFacet"
+value="jbossws.core"/>
+</adapt>
+</enabledWhen>
</page>
</extension>
16 years, 2 months
JBoss Tools SVN: r11264 - in trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks: ui/editors and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2008-10-29 03:19:52 -0400 (Wed, 29 Oct 2008)
New Revision: 11264
Modified:
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/SmooksTextEdtor.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java
trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java
Log:
JBIDE-2992
add new check actions for the xml2java analyzer.
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/SmooksTextEdtor.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/SmooksTextEdtor.java 2008-10-28 21:57:00 UTC (rev 11263)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/SmooksTextEdtor.java 2008-10-29 07:19:52 UTC (rev 11264)
@@ -27,8 +27,8 @@
super();
Assert.isNotNull(error);
this.error = error;
- while(error != null && error instanceof InvocationTargetException){
- error = ((InvocationTargetException)error).getTargetException();
+ while(this.error != null && this.error instanceof InvocationTargetException){
+ this.error = ((InvocationTargetException)this.error).getTargetException();
}
}
@@ -57,7 +57,9 @@
.get(SmooksGraphConstants.IMAGE_ERROR));
Label messageLabel = new Label(errorComposite, SWT.NONE);
- messageLabel.setText(error.getLocalizedMessage());
+ String errorMessage = error.getLocalizedMessage();
+ if(errorMessage == null ) errorMessage = "unknown error happen";
+ messageLabel.setText(errorMessage);
gd = new GridData(GridData.FILL_HORIZONTAL);
messageLabel.setLayoutData(gd);
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java 2008-10-28 21:57:00 UTC (rev 11263)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/ui/editors/SmooksGraphicalFormPage.java 2008-10-29 07:19:52 UTC (rev 11264)
@@ -1289,7 +1289,7 @@
SWT.NONE);
Menu menu = new Menu(getSite().getShell(), SWT.POP_UP);
List<ResolveCommand> list = result.getResolveProblem();
- for (Iterator iterator2 = list.iterator(); iterator2.hasNext();) {
+ for (Iterator<ResolveCommand> iterator2 = list.iterator(); iterator2.hasNext();) {
final ResolveCommand resolveCommand = (ResolveCommand) iterator2
.next();
MenuItem item = new MenuItem(menu, SWT.NONE);
Modified: trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java 2008-10-28 21:57:00 UTC (rev 11263)
+++ trunk/smooks/plugins/org.jboss.tools.smooks.ui/src/org/jboss/tools/smooks/utils/UIUtils.java 2008-10-29 07:19:52 UTC (rev 11264)
@@ -2,7 +2,6 @@
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
-import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
@@ -15,7 +14,6 @@
import org.eclipse.jface.dialogs.ErrorDialog;
import org.eclipse.jface.viewers.DecoratingLabelProvider;
import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.swt.layout.FillLayout;
@@ -165,29 +163,70 @@
TargetModel targetModel = (TargetModel) iterator.next();
Object refObj = targetModel.getReferenceEntityModel();
if (refObj instanceof JavaBeanModel) {
- Class clazz = ((JavaBeanModel) refObj).getBeanClass();
- if (clazz != null && (clazz.isInterface())) {
- DesignTimeAnalyzeResult result = new DesignTimeAnalyzeResult();
- result
- .setErrorMessage("Java model \""
- + ((JavaBeanModel) refObj).getName()
- + "\" can't be instanced case its instance class is interface or abstractclass");
- if (List.class.isAssignableFrom(clazz)) {
+ if (!targetModel.getModelTargetConnections().isEmpty()) {
+ String instanceName = ((JavaBeanModel) refObj)
+ .getBeanClassString();
+ Class instanceClazz = null;
+ if(((JavaBeanModel) refObj).isPrimitive()) {
+ // TODO process primitive type
+ continue;
+ }
+ String errorMessage = "";
+ try {
+ ClassLoader loader = newProjectClassLoader(context
+ .getSmooksConfigFile());
+ instanceClazz = loader.loadClass(instanceName);
+ } catch (Exception e) {
+ errorMessage = e.toString();
+ }
+ if (instanceClazz == null) {
+ DesignTimeAnalyzeResult result = new DesignTimeAnalyzeResult();
+ result.setErrorMessage("The instance class of \""
+ + ((JavaBeanModel) refObj).getName()
+ + "\" can't be loaded. Instance name is \"" + instanceName + "\"");
JavaModelResolveCommand command = new JavaModelResolveCommand(
context);
command
- .setResolveDescription("Change the instance class to \"java.util.ArrayList\"");
- command.setInstanceName("java.util.ArrayList");
+ .setResolveDescription("Change the instance class to \""
+ + ((JavaBeanModel) refObj)
+ .getBeanClass()
+ .getCanonicalName() + "\"");
+ command.setInstanceName(((JavaBeanModel) refObj).getBeanClass().getCanonicalName());
command.setJavaBean((JavaBeanModel) refObj);
result.addResolveCommand(command);
+ resultList.add(result);
}
- resultList.add(result);
+ if (instanceClazz != null && instanceClazz.isInterface()) {
+ DesignTimeAnalyzeResult result = new DesignTimeAnalyzeResult();
+ result
+ .setErrorMessage("Java model \""
+ + ((JavaBeanModel) refObj).getName()
+ + "\" can't be instanced. Instance name is \"" + instanceName + "\"");
+ if (List.class.isAssignableFrom(instanceClazz)) {
+ JavaModelResolveCommand command = new JavaModelResolveCommand(
+ context);
+ command
+ .setResolveDescription("Change the instance class to \"java.util.ArrayList\"");
+ command.setInstanceName("java.util.ArrayList");
+ command.setJavaBean((JavaBeanModel) refObj);
+ result.addResolveCommand(command);
+ }
+ resultList.add(result);
+ }
}
}
}
return resultList;
}
+ public static ClassLoader newProjectClassLoader(IFile file)
+ throws Exception {
+ IProject p = file.getProject();
+ IJavaProject jp = JavaCore.create(p);
+ ProjectClassLoader loader = new ProjectClassLoader(jp);
+ return loader;
+ }
+
public static Status createErrorStatus(Throwable throwable, String message) {
while (throwable != null
&& throwable instanceof InvocationTargetException) {
16 years, 2 months
JBoss Tools SVN: r11263 - trunk/documentation/whatsnew/esb.
by jbosstools-commits@lists.jboss.org
Author: john.graham(a)jboss.org
Date: 2008-10-28 17:57:00 -0400 (Tue, 28 Oct 2008)
New Revision: 11263
Modified:
trunk/documentation/whatsnew/esb/esb-news-1.1.0.Beta1.html
Log:
Additional explanation about BPMN -> jPDL wizard. Clarification of feature updates to jboss-esb.xml editor.
Modified: trunk/documentation/whatsnew/esb/esb-news-1.1.0.Beta1.html
===================================================================
--- trunk/documentation/whatsnew/esb/esb-news-1.1.0.Beta1.html 2008-10-28 21:52:20 UTC (rev 11262)
+++ trunk/documentation/whatsnew/esb/esb-news-1.1.0.Beta1.html 2008-10-28 21:57:00 UTC (rev 11263)
@@ -26,7 +26,8 @@
<tr>
<td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>BPMN to jPDL Export Wizard</b></td>
<td valign="top">
- <p>We added an export wizard for translating BPMN to jPDL.</p>
+ <p>We added an export wizard that converts BPMN diagrams defined using the Eclipse SOA Tools Platform (STP) BPMN editor and
+ produces jPDL that can be executed with the JBoss jBPM process engine.</p>
<p><img src="../images/bpmn2jpdl_exportwiz.png"/></p>
</td>
</tr>
@@ -48,7 +49,7 @@
<tr>
<td valign="top" align="right"><a name="itemname3" id="itemname3"></a><b>jboss-esb.xml editor</b></td>
<td valign="top">
- <p>We added an structured xml editor for the jboss-esb.xml file used in JBoss ESB archives.</p>
+ <p>We added additional wizard support for providers, listeners, and actions in the JBoss ESB configuration file editor.</p>
<p><img src="../images/esbxmleditor.png"/></p>
</td>
</tr>
16 years, 2 months
JBoss Tools SVN: r11262 - trunk/documentation/whatsnew.
by jbosstools-commits@lists.jboss.org
Author: john.graham(a)jboss.org
Date: 2008-10-28 17:52:20 -0400 (Tue, 28 Oct 2008)
New Revision: 11262
Modified:
trunk/documentation/whatsnew/index.html
Log:
Correct links to JBESB and Smooks files
Modified: trunk/documentation/whatsnew/index.html
===================================================================
--- trunk/documentation/whatsnew/index.html 2008-10-28 21:04:28 UTC (rev 11261)
+++ trunk/documentation/whatsnew/index.html 2008-10-28 21:52:20 UTC (rev 11262)
@@ -27,8 +27,8 @@
<p><a href="hibernate/hibernate-news-3.2.4.Beta1.html">Hibernate Tools</a></p>
<p><a href="as/as-news-2.0.0.Beta1.html">JBoss AS Tools</a></p>
<p><a href="vpe/vpe-news-3.0.0.Beta1.html">Visual Page Editor</a></p>
- <p><a href="esb/esb-news-1.1.0.beta1.html">JBoss ESB Tools</a></p>
- <p><a href="smooks/smooks-news-1.0.0.beta1.html">Smooks Tools</a></p>
+ <p><a href="esb/esb-news-1.1.0.Beta1.html">JBoss ESB Tools</a></p>
+ <p><a href="smooks/smooks-news-1.0.0.Beta1.html">Smooks Tools</a></p>
</td>
</tr>
16 years, 2 months
JBoss Tools SVN: r11261 - branches/jbosstools-3.0.0.Beta1/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-10-28 17:04:28 -0400 (Tue, 28 Oct 2008)
New Revision: 11261
Modified:
branches/jbosstools-3.0.0.Beta1/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/plugin.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-3034
main menu contribution commented to avoid double Source menu items in main menu
Modified: branches/jbosstools-3.0.0.Beta1/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/plugin.xml
===================================================================
--- branches/jbosstools-3.0.0.Beta1/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/plugin.xml 2008-10-28 20:55:47 UTC (rev 11260)
+++ branches/jbosstools-3.0.0.Beta1/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/plugin.xml 2008-10-28 21:04:28 UTC (rev 11261)
@@ -38,8 +38,7 @@
<super type="org.eclipse.core.resources.textmarker"/>
<persistent value="true"/>
</extension>
- <extension point="org.eclipse.ui.actionSets">
- <!-- main menu -->
+ <!--extension point="org.eclipse.ui.actionSets">
<actionSet label="Java Coding" description="Action set containing coding related Java actions"
visible="true" id="org.eclipse.jdt.ui.CodingActionSet3">
<menu label="&Source" path="edit" id="org.eclipse.jdt.ui.source.menu">
@@ -59,7 +58,7 @@
style="push">
</action>
</actionSet>
- </extension>
+ </extension-->
<extension point="org.eclipse.ui.popupMenus">
<!-- java editor context menu -->
<viewerContribution
16 years, 2 months