Author: vyemialyanchyk
Date: 2009-03-27 10:39:55 -0400 (Fri, 27 Mar 2009)
New Revision: 14351
Added:
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/project/test/annotated/fields/Entity.java
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/project/test/annotated/getters/Country.java
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/project/test/annotated/getters/Visa.java
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/specimen/test/annotated/fields/Entity.java
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/specimen/test/annotated/getters/Country.java
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/specimen/test/annotated/getters/Visa.java
Modified:
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/project/test/annotated/getters/Passport.java
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/specimen/test/annotated/getters/Passport.java
Log:
JBIDE-4031
Added:
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/project/test/annotated/fields/Entity.java
===================================================================
---
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/project/test/annotated/fields/Entity.java
(rev 0)
+++
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/project/test/annotated/fields/Entity.java 2009-03-27
14:39:55 UTC (rev 14351)
@@ -0,0 +1,15 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package test.annotated.getters;
+
+// just specific test case
+public interface Entity extends Identifiable <Long>
+{ Long getId (); }
Added:
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/project/test/annotated/getters/Country.java
===================================================================
---
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/project/test/annotated/getters/Country.java
(rev 0)
+++
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/project/test/annotated/getters/Country.java 2009-03-27
14:39:55 UTC (rev 14351)
@@ -0,0 +1,25 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package test.annotated.fields;
+
+public class Country {
+
+ private String name;
+
+ public Country(String name){
+ this.name = name;
+ }
+
+ public String getName(){
+ return this.name;
+ }
+
+}
Modified:
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/project/test/annotated/getters/Passport.java
===================================================================
---
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/project/test/annotated/getters/Passport.java 2009-03-27
14:27:16 UTC (rev 14350)
+++
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/project/test/annotated/getters/Passport.java 2009-03-27
14:39:55 UTC (rev 14351)
@@ -10,12 +10,24 @@
******************************************************************************/
package test.annotated.getters;
+import java.util.Map;
+
public class Passport extends Document {
- private Long fakeId;
+ protected Long fakeId;
+ private Map<Visa, String> visas;
+
public Passport() {
setDocType((byte)1);
}
+
+ public void setVisas(Map<Visa, String> visas){
+ this.visas = visas;
+ }
+
+ public Map<Visa, String> getVisas(){
+ return visas;
+ }
}
Added:
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/project/test/annotated/getters/Visa.java
===================================================================
---
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/project/test/annotated/getters/Visa.java
(rev 0)
+++
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/project/test/annotated/getters/Visa.java 2009-03-27
14:39:55 UTC (rev 14351)
@@ -0,0 +1,42 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package test.annotated.fields;
+
+/**
+ * @author Dmitry Geraskov
+ *
+ */
+public class Visa {
+ private Country[] countries;
+
+ private byta nonCompiledProterty1;
+ privata byte nonCompiledProterty2;
+
+ public Visa(Country[] countries) {
+ this.countries = countries;
+ }
+
+ public getCountriesNonCompiledMethod() {
+ return countries;
+ }
+
+ publis getCountriesNonCompiledMethod2() {
+ return countries;
+ }
+
+ public Country[] getCountries() {
+ return countries;
+ }
+
+ public setCountries(Country[] countries) {
+ this.countries = countries;
+ }
+}
Added:
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/specimen/test/annotated/fields/Entity.java
===================================================================
---
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/specimen/test/annotated/fields/Entity.java
(rev 0)
+++
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/specimen/test/annotated/fields/Entity.java 2009-03-27
14:39:55 UTC (rev 14351)
@@ -0,0 +1,15 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package test.annotated.getters;
+
+// just specific test case
+public interface Entity extends Identifiable <Long>
+{ Long getId (); }
Added:
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/specimen/test/annotated/getters/Country.java
===================================================================
---
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/specimen/test/annotated/getters/Country.java
(rev 0)
+++
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/specimen/test/annotated/getters/Country.java 2009-03-27
14:39:55 UTC (rev 14351)
@@ -0,0 +1,28 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package test.annotated.fields;
+
+import javax.persistence.Entity;
+
+@Entity
+public class Country {
+
+ private String name;
+
+ public Country(String name){
+ this.name = name;
+ }
+
+ public String getName(){
+ return this.name;
+ }
+
+}
Modified:
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/specimen/test/annotated/getters/Passport.java
===================================================================
---
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/specimen/test/annotated/getters/Passport.java 2009-03-27
14:27:16 UTC (rev 14350)
+++
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/specimen/test/annotated/getters/Passport.java 2009-03-27
14:39:55 UTC (rev 14351)
@@ -10,15 +10,29 @@
******************************************************************************/
package test.annotated.getters;
+import java.util.Map;
+
import javax.persistence.Entity;
+import javax.persistence.OneToMany;
@Entity
public class Passport extends Document {
- private Long fakeId;
+ protected Long fakeId;
+
+ private Map<Visa, String> visas;
public Passport() {
setDocType((byte)1);
}
+
+ public void setVisas(Map<Visa, String> visas){
+ this.visas = visas;
+ }
+
+ @OneToMany
+ public Map<Visa, String> getVisas(){
+ return visas;
+ }
}
Added:
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/specimen/test/annotated/getters/Visa.java
===================================================================
---
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/specimen/test/annotated/getters/Visa.java
(rev 0)
+++
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/res/specimen/test/annotated/getters/Visa.java 2009-03-27
14:39:55 UTC (rev 14351)
@@ -0,0 +1,43 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2009 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at
http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package test.annotated.fields;
+
+import javax.persistence.Entity;
+import javax.persistence.OneToMany;
+
+@Entity
+public class Visa {
+ private Country[] countries;
+
+ private byta nonCompiledProterty1;
+ privata byte nonCompiledProterty2;
+
+ public Visa(Country[] countries){
+ this.countries = countries;
+ }
+
+ public getCountriesNonCompiledMethod() {
+ return countries;
+ }
+
+ publis getCountriesNonCompiledMethod2() {
+ return countries;
+ }
+
+ @OneToMany(mappedBy="country")
+ public Country[] getCountries(){
+ return countries;
+ }
+
+ public setCountries(Country[] countries){
+ this.countries = countries;
+ }
+}