You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2015/07/25 11:29:41 UTC
[23/48] isis git commit: ISIS-1178: mothballing the tck tests.
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/movies/MovieDomainRepository.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/movies/MovieDomainRepository.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/movies/MovieDomainRepository.java
deleted file mode 100644
index 19d4986..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/movies/MovieDomainRepository.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.movies;
-
-import java.util.List;
-
-import org.apache.isis.applib.DomainObjectContainer;
-
-public class MovieDomainRepository {
-
- public List<Person> allPersons() {
- return container.allInstances(Person.class);
- }
-
- public List<Movie> allMovies() {
- return container.allInstances(Movie.class);
- }
-
- public List<Role> allRoles() {
- return container.allInstances(Role.class);
- }
-
-
- // {{ injected: DomainObjectContainer
- private DomainObjectContainer container;
-
- public void setDomainObjectContainer(final DomainObjectContainer container) {
- this.container = container;
- }
- // }}
-
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/movies/Person.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/movies/Person.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/movies/Person.java
deleted file mode 100644
index 5eb7cd2..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/movies/Person.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.movies;
-
-import java.util.Date;
-
-import org.apache.isis.applib.annotation.ObjectType;
-
-@ObjectType("movies.PERSON")
-public class Person {
-
- public String title() {
- return name;
- }
-
- // {{ name: String
- private String name;
- public String getName() {
- return name;
- }
- public void setName(final String name) {
- this.name = name;
- }
- // }}
-
-
- // {{ Date: java.util.Date
- private Date date;
- public Date getDate() {
- return date;
- }
- public void setDate(final Date date) {
- this.date = date;
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/movies/Role.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/movies/Role.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/movies/Role.java
deleted file mode 100644
index 6a8cd32..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/movies/Role.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.movies;
-
-import org.apache.isis.applib.annotation.ObjectType;
-
-
-@ObjectType("movies.ROLE")
-public class Role {
-
- public String title() {
- return name;
- }
-
- // {{ name: String
- private String name;
- public String getName() {
- return name;
- }
- public void setName(final String name) {
- this.name = name;
- }
- // }}
-
-
- // {{ actor: Person
- private Person actor;
- public Person getActor() {
- return actor;
- }
- public void setActor(final Person actor) {
- this.actor = actor;
- }
- // }}
-
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/Empty.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/Empty.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/Empty.java
deleted file mode 100755
index 1e4c352..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/Empty.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.poly;
-
-public interface Empty {
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/EmptyEntityWithOwnProperty.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/EmptyEntityWithOwnProperty.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/EmptyEntityWithOwnProperty.java
deleted file mode 100644
index dd6190f..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/EmptyEntityWithOwnProperty.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.isis.core.tck.dom.poly;
-
-
-public class EmptyEntityWithOwnProperty implements Empty {
-
- // {{ Special: string
- private String special;
-
- public String getSpecial() {
- return special;
- }
-
- public void setSpecial(final String special) {
- this.special = special;
- }
- // }}
-
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/ReferencingPolyTypesEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/ReferencingPolyTypesEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/ReferencingPolyTypesEntity.java
deleted file mode 100755
index 3a73ff7..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/ReferencingPolyTypesEntity.java
+++ /dev/null
@@ -1,110 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/**
- *
- */
-package org.apache.isis.core.tck.dom.poly;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.apache.isis.applib.AbstractDomainObject;
-
-/**
- * This class is the collection point of all the polymorphism and related tests.
- * There is nothing really special about it, it is just a placeholder for the
- * various tests related to polymorphism or recursion (JIRA ISIS-117 and
- * ISIS-118).
- *
- * @author Kevin
- *
- */
-public class ReferencingPolyTypesEntity extends AbstractDomainObject {
-
- public String title() {
- return string;
- }
-
- // {{ String type
- private String string;
-
- public String getString() {
- return string;
- }
-
- public void setString(final String string) {
- this.string = string;
- }
-
- // }}
-
- // {{ PolyBaseClass collection
- private List<StringBaseEntity> polyBaseClasses = new ArrayList<StringBaseEntity>();
-
- public List<StringBaseEntity> getPolyBaseClasses() {
- return polyBaseClasses;
- }
-
- public void setPolyBaseClasses(final List<StringBaseEntity> polyBaseClasses) {
- this.polyBaseClasses = polyBaseClasses;
- }
-
- // }}
-
- // {{ PolyInterfaceType: Can we store / restore properties by interface?
- private Stringable polyInterfaceType;
-
- public Stringable getPolyInterfaceType() {
- return polyInterfaceType;
- }
-
- public void setPolyInterfaceType(final Stringable polyInterfaceType) {
- this.polyInterfaceType = polyInterfaceType;
- }
-
- // }}
-
- // {{ PolyInterface collection
- private List<Stringable> stringables = new ArrayList<Stringable>();
-
- public List<Stringable> getPolyInterfaces() {
- return stringables;
- }
-
- public void setPolyInterfaces(final List<Stringable> stringables) {
- this.stringables = stringables;
- }
-
- // }}
-
- // {{ PolySelfRefClass: Can we store / restore classes that contain
- // self-referencing collections?
- private SelfReferencingEntity selfReferencingEntity;
-
- public SelfReferencingEntity getPolySelfRefClass() {
- return selfReferencingEntity;
- }
-
- public void setPolySelfRefClass(final SelfReferencingEntity selfReferencingEntity) {
- this.selfReferencingEntity = selfReferencingEntity;
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/SelfReferencingEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/SelfReferencingEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/SelfReferencingEntity.java
deleted file mode 100755
index 59a4058..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/SelfReferencingEntity.java
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.poly;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.apache.isis.applib.AbstractDomainObject;
-
-/**
- * This test class is used to test that a class can contain a collection of
- * itself.
- *
- * Caveat: Every class instance can only be contained by 1 parent collection,
- * and will only be contained once.
- *
- * @author Kevin
- *
- * @version $Rev$ $Date$
- */
-
-public class SelfReferencingEntity extends AbstractDomainObject {
-
- public String title() {
- return string;
- }
-
- // {{ String type
- private String string;
- public String getString() {
- return string;
- }
- public void setString(final String string) {
- this.string = string;
- }
- // }}
-
- // {{ PolyTestClass collection
- private List<SelfReferencingEntity> polySelfRefClasses = new ArrayList<SelfReferencingEntity>();
-
- public List<SelfReferencingEntity> getPolySelfRefClasses() {
- return polySelfRefClasses;
- }
-
- public void setPolySelfRefClasses(final List<SelfReferencingEntity> polySelfRefClasses) {
- this.polySelfRefClasses = polySelfRefClasses;
- }
-
- public void addToPolySelfRefClasses(final SelfReferencingEntity selfReferencingEntity) {
- // check for no-op
- if (selfReferencingEntity == null || getPolySelfRefClasses().contains(selfReferencingEntity)) {
- return;
- }
- // associate new
- getPolySelfRefClasses().add(selfReferencingEntity);
- }
-
- public void removeFromPolySelfRefClasses(final SelfReferencingEntity selfReferencingEntity) {
- // check for no-op
- if (selfReferencingEntity == null || !getPolySelfRefClasses().contains(selfReferencingEntity)) {
- return;
- }
- // dissociate existing
- getPolySelfRefClasses().remove(selfReferencingEntity);
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringBaseEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringBaseEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringBaseEntity.java
deleted file mode 100755
index 4636a53..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringBaseEntity.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/**
- *
- */
-package org.apache.isis.core.tck.dom.poly;
-
-import org.apache.isis.applib.AbstractDomainObject;
-
-/**
- * @author Kevin
- *
- */
-public abstract class StringBaseEntity extends AbstractDomainObject {
-
- public String title() {
- return stringBase;
- }
-
- // {{ String type
- private String stringBase;
-
- public String getStringBase() {
- return stringBase;
- }
-
- public void setStringBase(final String string) {
- this.stringBase = string;
- }
-
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringBaseEntitySub.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringBaseEntitySub.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringBaseEntitySub.java
deleted file mode 100755
index 748997c..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringBaseEntitySub.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/**
- *
- */
-package org.apache.isis.core.tck.dom.poly;
-
-/**
- * @author Kevin
- *
- */
-public class StringBaseEntitySub extends StringBaseEntity {
-
- @Override
- public String title() {
- return stringOne;
- }
-
- // {{ String type
- private String stringOne;
-
- public String getStringClassOne() {
- return stringOne;
- }
-
- public void setStringClassOne(final String string) {
- this.stringOne = string;
- }
-
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringBaseEntitySubThree.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringBaseEntitySubThree.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringBaseEntitySubThree.java
deleted file mode 100755
index a208ec2..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringBaseEntitySubThree.java
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/**
- *
- */
-package org.apache.isis.core.tck.dom.poly;
-
-/**
- * @author Kevin
- *
- */
-public class StringBaseEntitySubThree extends StringBaseEntitySubTwo {
-
- // {{ String type
- private String string;
-
- public String getStringClassThree() {
- return string;
- }
-
- public void setStringClassThree(final String string) {
- this.string = string;
- }
-
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringBaseEntitySubTwo.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringBaseEntitySubTwo.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringBaseEntitySubTwo.java
deleted file mode 100755
index 7ffd40b..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringBaseEntitySubTwo.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/**
- *
- */
-package org.apache.isis.core.tck.dom.poly;
-
-/**
- * @author Kevin
- *
- */
-public class StringBaseEntitySubTwo extends StringBaseEntity {
-
- @Override
- public String title() {
- return stringClassTwo;
- }
-
- // {{ String type
- private String stringClassTwo;
-
- public String getStringClassTwo() {
- return stringClassTwo;
- }
-
- public void setStringClassTwo(final String string) {
- this.stringClassTwo = string;
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/Stringable.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/Stringable.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/Stringable.java
deleted file mode 100755
index b3f502f..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/Stringable.java
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.poly;
-
-public interface Stringable {
- public String getString();
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringableEntityWithOwnDerivedProperty.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringableEntityWithOwnDerivedProperty.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringableEntityWithOwnDerivedProperty.java
deleted file mode 100644
index a3d2b13..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringableEntityWithOwnDerivedProperty.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.isis.core.tck.dom.poly;
-
-
-public class StringableEntityWithOwnDerivedProperty implements Stringable {
-
- // {{ String
- private String string;
-
- @Override
- public String getString() {
- return string;
- }
-
- public void setString(final String string) {
- this.string = string;
- }
- // }}
-
- public String getSpecial() {
- return "special";
- }
-
-}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringableEntityWithOwnProperties.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringableEntityWithOwnProperties.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringableEntityWithOwnProperties.java
deleted file mode 100755
index 41a11ea..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringableEntityWithOwnProperties.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.poly;
-
-import org.apache.isis.applib.AbstractDomainObject;
-import org.apache.isis.applib.annotation.MemberOrder;
-
-public class StringableEntityWithOwnProperties extends AbstractDomainObject implements Stringable, Empty {
-
- public String title() {
- return string;
- }
-
- // {{ String type
- private String string;
-
- @Override
- public String getString() {
- return string;
- }
-
- public void setString(final String string) {
- this.string = string;
- }
-
- // }}
-
- // {{ Special
- private String special;
-
- public String getSpecial() {
- return special;
- }
-
- public void setSpecial(final String special) {
- this.special = special;
- }
-
- // }}
-
- // {{ Integer
- private Integer integerValue;
-
- @MemberOrder(sequence = "1")
- public Integer getInteger() {
- return integerValue;
- }
-
- public void setInteger(final Integer integerValue) {
- this.integerValue = integerValue;
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringableEntityWithOwnProperty.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringableEntityWithOwnProperty.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringableEntityWithOwnProperty.java
deleted file mode 100755
index 460f521..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/poly/StringableEntityWithOwnProperty.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.poly;
-
-import org.apache.isis.applib.AbstractDomainObject;
-
-public class StringableEntityWithOwnProperty extends AbstractDomainObject implements Stringable {
-
- public String title() {
- return string;
- }
-
- // {{ String type
- private String string;
- @Override
- public String getString() {
- return string;
- }
- public void setString(final String string) {
- this.string = string;
- }
- // }}
-
- // {{ Special
- private String special;
- public String getSpecial() {
- return special;
- }
- public void setSpecial(final String special) {
- this.special = special;
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/AggregatedEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/AggregatedEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/AggregatedEntity.java
deleted file mode 100644
index dab2309..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/AggregatedEntity.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.refs;
-
-import org.apache.isis.applib.annotation.Aggregated;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.ObjectType;
-
-@javax.jdo.annotations.PersistenceCapable
-@javax.jdo.annotations.EmbeddedOnly
-@javax.jdo.annotations.Discriminator("AGGR")
-@Aggregated
-@ObjectType("AGGR")
-public class AggregatedEntity extends BaseEntity {
-
- // {{ Name
- private String name;
-
- @MemberOrder(sequence = "1")
- public String getName() {
- return name;
- }
-
- public void setName(final String name) {
- this.name = name;
- }
-
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BaseEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BaseEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BaseEntity.java
deleted file mode 100644
index e54fd4f..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BaseEntity.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.refs;
-
-import org.apache.isis.applib.AbstractContainedObject;
-
-public abstract class BaseEntity extends AbstractContainedObject {
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BidirWithListChildEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BidirWithListChildEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BidirWithListChildEntity.java
deleted file mode 100644
index 9a4d524..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BidirWithListChildEntity.java
+++ /dev/null
@@ -1,94 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.refs;
-
-import java.util.List;
-
-import javax.jdo.annotations.IdentityType;
-
-import org.apache.isis.applib.AbstractDomainObject;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.ObjectType;
-import org.apache.isis.applib.annotation.Optional;
-import org.apache.isis.applib.annotation.Title;
-
-@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
-@javax.jdo.annotations.Discriminator("BDLC")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@ObjectType("BDLC")
-public class BidirWithListChildEntity extends AbstractDomainObject {
-
- // {{ Parent (title #1)
- private BidirWithListParentEntity parent;
-
- @Title(sequence="1", append="-")
- @MemberOrder(sequence = "1")
- @Optional
- public BidirWithListParentEntity getParent() {
- return parent;
- }
-
- public void setParent(final BidirWithListParentEntity parent) {
- this.parent = parent;
- }
-
- // }}
-
- // {{ Name (title #2)
- private String name;
-
- @Title(sequence="2")
- @MemberOrder(sequence = "1")
- public String getName() {
- return name;
- }
-
- public void setName(final String name) {
- this.name = name;
- }
-
- // }}
-
- // {{ moveTo
- @MemberOrder(sequence = "1")
- public BidirWithListChildEntity moveTo(final BidirWithListParentEntity newParent) {
- if (newParent == getParent()) {
- // nothing to do
- return this;
- }
- if (getParent() != null) {
- getParent().removeChild(this);
- }
- newParent.getChildren().add(this);
- this.setParent(newParent);
- return this;
- }
-
- public BidirWithListParentEntity default0MoveTo() {
- return getParent();
- }
-
- public List<BidirWithListParentEntity> choices0MoveTo() {
- return getContainer().allInstances(BidirWithListParentEntity.class);
- }
-
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BidirWithListParentEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BidirWithListParentEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BidirWithListParentEntity.java
deleted file mode 100644
index 9e28e7d..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BidirWithListParentEntity.java
+++ /dev/null
@@ -1,99 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.refs;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.jdo.annotations.IdentityType;
-import javax.jdo.annotations.Persistent;
-
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.ObjectType;
-import org.apache.isis.applib.annotation.Optional;
-import org.apache.isis.applib.annotation.Title;
-
-@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
-@javax.jdo.annotations.Discriminator("BDLP")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@ObjectType("BDLP")
-public class BidirWithListParentEntity extends BaseEntity {
-
- // {{ Name (also title)
- private String name;
-
- @Title
- @MemberOrder(sequence = "1")
- @Optional
- public String getName() {
- return name;
- }
-
- public void setName(final String name) {
- this.name = name;
- }
-
- // }}
-
-
-
- // {{ Children
- @Persistent(mappedBy="parent")
- private List<BidirWithListChildEntity> children = new ArrayList<BidirWithListChildEntity>();
-
- @MemberOrder(sequence = "1")
- public List<BidirWithListChildEntity> getChildren() {
- return children;
- }
-
- public void setChildren(final List<BidirWithListChildEntity> children) {
- this.children = children;
- }
- // }}
-
-
-
- // {{ newChild (action)
- public BidirWithListChildEntity newChild(final String name) {
- final BidirWithListChildEntity childEntity = newTransientInstance(BidirWithListChildEntity.class);
- childEntity.setName(name);
- childEntity.setParent(this);
- this.getChildren().add(childEntity);
- persistIfNotAlready(childEntity);
- return childEntity;
- }
- // }}
-
-
- // {{ removeChild (action)
- public BidirWithListParentEntity removeChild(final BidirWithListChildEntity childEntity) {
- if (getChildren().contains(childEntity)) {
- getChildren().remove(childEntity);
- childEntity.setParent(null);
- }
- return this;
- }
-
- public List<BidirWithListChildEntity> choices0RemoveChild() {
- return getChildren();
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BidirWithListParentEntityRepository.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BidirWithListParentEntityRepository.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BidirWithListParentEntityRepository.java
deleted file mode 100644
index a12eeec..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BidirWithListParentEntityRepository.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.refs;
-
-import org.apache.isis.applib.annotation.DomainService;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.Named;
-import org.apache.isis.applib.annotation.ObjectType;
-import org.apache.isis.core.tck.dom.AbstractEntityRepository;
-
-@Named("BidirWithListParentEntities")
-@ObjectType("BidirWithListParentEntities")
-@DomainService
-public class BidirWithListParentEntityRepository extends AbstractEntityRepository<BidirWithListParentEntity> {
-
- public BidirWithListParentEntityRepository() {
- super(BidirWithListParentEntity.class, "BidirWithListParentEntities");
- }
-
- @MemberOrder(sequence = "2")
- public BidirWithListParentEntity newEntity(final String name) {
- final BidirWithListParentEntity entity = newTransientInstance(BidirWithListParentEntity.class);
- entity.setName(name);
- persist(entity);
- return entity;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BidirWithSetChildEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BidirWithSetChildEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BidirWithSetChildEntity.java
deleted file mode 100644
index ecac7fe..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BidirWithSetChildEntity.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.refs;
-
-import java.util.List;
-
-import javax.jdo.annotations.IdentityType;
-
-import org.apache.isis.applib.AbstractDomainObject;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.ObjectType;
-import org.apache.isis.applib.annotation.Optional;
-import org.apache.isis.applib.annotation.Title;
-
-@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
-@javax.jdo.annotations.Discriminator("BDSC")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@ObjectType("BDSC")
-public class BidirWithSetChildEntity extends AbstractDomainObject {
-
- // {{ Parent (title #1)
- private BidirWithSetParentEntity parent;
-
- @Title(sequence="1", append="-")
- @MemberOrder(sequence = "1")
- @Optional
- public BidirWithSetParentEntity getParent() {
- return parent;
- }
-
- public void setParent(final BidirWithSetParentEntity parent) {
- this.parent = parent;
- }
-
- // }}
-
- // {{ Name (title #2)
- private String name;
-
- @Title(sequence="2")
- @MemberOrder(sequence = "1")
- public String getName() {
- return name;
- }
-
- public void setName(final String name) {
- this.name = name;
- }
-
- // }}
-
- // {{ moveTo
- @MemberOrder(sequence = "1")
- public BidirWithSetChildEntity moveTo(final BidirWithSetParentEntity newParent) {
- if (newParent == getParent()) {
- // nothing to do
- return this;
- }
- if (getParent() != null) {
- getParent().removeChild(this);
- }
- newParent.getChildren().add(this);
- this.setParent(newParent);
- return this;
- }
-
- public BidirWithSetParentEntity default0MoveTo() {
- return getParent();
- }
-
- public List<BidirWithSetParentEntity> choices0MoveTo() {
- return getContainer().allInstances(BidirWithSetParentEntity.class);
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BidirWithSetParentEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BidirWithSetParentEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BidirWithSetParentEntity.java
deleted file mode 100644
index f106b39..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BidirWithSetParentEntity.java
+++ /dev/null
@@ -1,100 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.refs;
-
-import java.util.Arrays;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-import javax.jdo.annotations.IdentityType;
-import javax.jdo.annotations.Persistent;
-
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.ObjectType;
-import org.apache.isis.applib.annotation.Optional;
-import org.apache.isis.applib.annotation.Title;
-
-@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
-@javax.jdo.annotations.Discriminator("BDSP")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@ObjectType("BDSP")
-public class BidirWithSetParentEntity extends BaseEntity {
-
-
- // {{ Name (also title)
- private String name;
-
- @Title
- @MemberOrder(sequence = "1")
- @Optional
- public String getName() {
- return name;
- }
-
- public void setName(final String name) {
- this.name = name;
- }
-
- // }}
-
-
- // {{ Children
- @Persistent(mappedBy="parent")
- private Set<BidirWithSetChildEntity> children = new HashSet<BidirWithSetChildEntity>();
-
- @MemberOrder(sequence = "1")
- public Set<BidirWithSetChildEntity> getChildren() {
- return children;
- }
-
- public void setChildren(final Set<BidirWithSetChildEntity> children) {
- this.children = children;
- }
- // }}
-
-
- // {{ newChild (action)
- public BidirWithSetChildEntity newChild(final String name) {
- final BidirWithSetChildEntity childEntity = newTransientInstance(BidirWithSetChildEntity.class);
- childEntity.setName(name);
- childEntity.setParent(this);
- this.getChildren().add(childEntity);
- persistIfNotAlready(childEntity);
- return childEntity;
- }
- // }}
-
-
- // {{ removeChild (action)
- public BidirWithSetParentEntity removeChild(final BidirWithSetChildEntity childEntity) {
- if (getChildren().contains(childEntity)) {
- getChildren().remove(childEntity);
- childEntity.setParent(null);
- }
- return this;
- }
-
- public List<BidirWithSetChildEntity> choices0RemoveChild() {
- return Arrays.asList(getChildren().toArray(new BidirWithSetChildEntity[0]));
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BidirWithSetParentEntityRepository.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BidirWithSetParentEntityRepository.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BidirWithSetParentEntityRepository.java
deleted file mode 100644
index 130c27e..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/BidirWithSetParentEntityRepository.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.refs;
-
-import org.apache.isis.applib.annotation.DomainService;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.Named;
-import org.apache.isis.applib.annotation.ObjectType;
-import org.apache.isis.core.tck.dom.AbstractEntityRepository;
-
-@Named("BidirWithSetParentEntities")
-@ObjectType("BidirWithSetParentEntities")
-@DomainService
-public class BidirWithSetParentEntityRepository extends AbstractEntityRepository<BidirWithSetParentEntity> {
-
- public BidirWithSetParentEntityRepository() {
- super(BidirWithSetParentEntity.class, "BidirWithSetParentEntities");
- }
-
- @MemberOrder(sequence = "2")
- public BidirWithSetParentEntity newEntity(final String name) {
- final BidirWithSetParentEntity entity = newTransientInstance(BidirWithSetParentEntity.class);
- entity.setName(name);
- persist(entity);
- return entity;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/ChildEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/ChildEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/ChildEntity.java
deleted file mode 100644
index fb86419..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/ChildEntity.java
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.refs;
-
-import java.util.List;
-
-import org.apache.isis.applib.AbstractDomainObject;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.ObjectType;
-import org.apache.isis.applib.annotation.Optional;
-import org.apache.isis.applib.annotation.Title;
-
-@ObjectType("CHLD")
-public class ChildEntity extends AbstractDomainObject {
-
- // {{ Parent (title #1)
- private ParentEntity parent;
-
- @Title(sequence="1", append="-")
- @MemberOrder(sequence = "1")
- @Optional
- public ParentEntity getParent() {
- return parent;
- }
-
- public void setParent(final ParentEntity parent) {
- this.parent = parent;
- }
-
- // }}
-
- // {{ Name (title #2)
- private String name;
-
- @Title(sequence="2")
- @MemberOrder(sequence = "1")
- public String getName() {
- return name;
- }
-
- public void setName(final String name) {
- this.name = name;
- }
-
- // }}
-
- // {{ moveTo
- @MemberOrder(sequence = "1")
- public ChildEntity moveTo(final ParentEntity newParent) {
- if (newParent == getParent()) {
- // nothing to do
- return this;
- }
- if (getParent() != null) {
- getParent().removeChild(this);
- }
- newParent.getChildren().add(this);
- this.setParent(newParent);
- return this;
- }
-
- public ParentEntity default0MoveTo() {
- return getParent();
- }
-
- public List<ParentEntity> choices0MoveTo() {
- return getContainer().allInstances(ParentEntity.class);
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/ParentEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/ParentEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/ParentEntity.java
deleted file mode 100644
index 6abc29a..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/ParentEntity.java
+++ /dev/null
@@ -1,128 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.refs;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.NotPersisted;
-import org.apache.isis.applib.annotation.ObjectType;
-import org.apache.isis.applib.annotation.Optional;
-import org.apache.isis.applib.annotation.Title;
-
-@ObjectType("PRNT")
-public class ParentEntity extends BaseEntity {
-
- // {{ Name (also title)
- private String name;
-
- @Title
- @MemberOrder(sequence = "1")
- @Optional
- public String getName() {
- return name;
- }
-
- public void setName(final String name) {
- this.name = name;
- }
-
- // }}
-
- // {{ HomogeneousCollection
- private List<SimpleEntity> homogeneousCollection = new ArrayList<SimpleEntity>();
-
- public List<SimpleEntity> getHomogeneousCollection() {
- return homogeneousCollection;
- }
-
- public void setHomogeneousCollection(final List<SimpleEntity> homogenousCollection) {
- this.homogeneousCollection = homogenousCollection;
- }
-
- // }}
-
- // {{ HeterogeneousCollection
- private List<BaseEntity> heterogeneousCollection = new ArrayList<BaseEntity>();
-
- public List<BaseEntity> getHeterogeneousCollection() {
- return heterogeneousCollection;
- }
-
- public void setHeterogeneousCollection(final List<BaseEntity> hetrogenousCollection) {
- this.heterogeneousCollection = hetrogenousCollection;
- }
-
- // }}
-
- // {{ Children
- private Set<ChildEntity> children = new HashSet<ChildEntity>();
-
- @MemberOrder(sequence = "1")
- public Set<ChildEntity> getChildren() {
- return children;
- }
-
- public void setChildren(final Set<ChildEntity> children) {
- this.children = children;
- }
- // }}
-
-
- // {{ NotPersisted
- @NotPersisted
- public List<SimpleEntity> getNotPersisted() {
- throw new org.apache.isis.applib.NonRecoverableException("unexpected call");
- }
- // }}
-
-
-
- // {{ newChild (action)
- public ChildEntity newChild(final String name) {
- final ChildEntity childEntity = newTransientInstance(ChildEntity.class);
- childEntity.setName(name);
- childEntity.setParent(this);
- this.getChildren().add(childEntity);
- persistIfNotAlready(childEntity);
- return childEntity;
- }
- // }}
-
-
- // {{ removeChild (action)
- public ParentEntity removeChild(final ChildEntity childEntity) {
- if (getChildren().contains(childEntity)) {
- getChildren().remove(childEntity);
- childEntity.setParent(null);
- }
- return this;
- }
-
- public Set<ChildEntity> choices0RemoveChild() {
- return getChildren();
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/ParentEntityRepository.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/ParentEntityRepository.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/ParentEntityRepository.java
deleted file mode 100644
index 25ef44d..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/ParentEntityRepository.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.refs;
-
-import org.apache.isis.applib.annotation.DomainService;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.Named;
-import org.apache.isis.applib.annotation.ObjectType;
-import org.apache.isis.core.tck.dom.AbstractEntityRepository;
-
-@Named("ParentEntities")
-@ObjectType("ParentEntities")
-@DomainService
-public class ParentEntityRepository extends AbstractEntityRepository<ParentEntity> {
-
- public ParentEntityRepository() {
- super(ParentEntity.class, "ParentEntities");
- }
-
- public BaseEntity someAction() { return null; }
-
- public SimpleEntity someAction2() { return null; }
-
- public ReferencingEntity someAction3() { return null; }
-
- @MemberOrder(sequence = "2")
- public ParentEntity newEntity(final String name) {
- final ParentEntity entity = newTransientInstance(ParentEntity.class);
- entity.setName(name);
- persist(entity);
- return entity;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyClassChildEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyClassChildEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyClassChildEntity.java
deleted file mode 100644
index 364b693..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyClassChildEntity.java
+++ /dev/null
@@ -1,96 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.refs;
-
-import java.util.List;
-
-import javax.jdo.annotations.IdentityType;
-import javax.jdo.annotations.Inheritance;
-import javax.jdo.annotations.InheritanceStrategy;
-
-import org.apache.isis.applib.AbstractDomainObject;
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.ObjectType;
-import org.apache.isis.applib.annotation.Optional;
-import org.apache.isis.applib.annotation.Title;
-
-@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
-@javax.jdo.annotations.Discriminator("PCCH")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@Inheritance(strategy=InheritanceStrategy.NEW_TABLE)
-@ObjectType("PCCH")
-public abstract class PolyClassChildEntity extends AbstractDomainObject {
-
- // {{ Parent (title #1)
- private PolyClassParentEntity parent;
-
- @Title(sequence="1", append="-")
- @MemberOrder(sequence = "1")
- @Optional
- public PolyClassParentEntity getParent() {
- return parent;
- }
-
- public void setParent(final PolyClassParentEntity parent) {
- this.parent = parent;
- }
-
- // }}
-
- // {{ Name (title #2)
- private String name;
-
- @Title(sequence="2")
- @MemberOrder(sequence = "1")
- public String getName() {
- return name;
- }
-
- public void setName(final String name) {
- this.name = name;
- }
-
- // }}
-
- // {{ moveTo
- @MemberOrder(sequence = "1")
- public PolyClassChildEntity moveTo(final PolyClassParentEntity newParent) {
- if (newParent == getParent()) {
- // nothing to do
- return this;
- }
- if (getParent() != null) {
- getParent().removeChild(this);
- }
- newParent.getChildren().add(this);
- this.setParent(newParent);
- return this;
- }
-
- public PolyClassParentEntity default0MoveTo() {
- return getParent();
- }
-
- public List<PolyClassParentEntity> choices0MoveTo() {
- return getContainer().allInstances(PolyClassParentEntity.class);
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyClassParentEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyClassParentEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyClassParentEntity.java
deleted file mode 100644
index d8f6594..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyClassParentEntity.java
+++ /dev/null
@@ -1,125 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.refs;
-
-import java.math.BigDecimal;
-import java.util.Arrays;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-import javax.jdo.annotations.IdentityType;
-import javax.jdo.annotations.Persistent;
-
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.ObjectType;
-import org.apache.isis.applib.annotation.Optional;
-import org.apache.isis.applib.annotation.Title;
-
-@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
-@javax.jdo.annotations.Discriminator("PCPR")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@ObjectType("PCPR")
-public class PolyClassParentEntity extends BaseEntity {
-
-
- // {{ Name (also title)
- private String name;
-
- @Title
- @MemberOrder(sequence = "1")
- @Optional
- public String getName() {
- return name;
- }
-
- public void setName(final String name) {
- this.name = name;
- }
-
- // }}
-
-
- // {{ Children
- @Persistent(mappedBy="parent")
- private Set<PolyClassChildEntity> children = new HashSet<PolyClassChildEntity>();
-
- @MemberOrder(sequence = "1")
- public Set<PolyClassChildEntity> getChildren() {
- return children;
- }
-
- public void setChildren(final Set<PolyClassChildEntity> children) {
- this.children = children;
- }
- // }}
-
-
- // {{ newSubtype1 (action)
- public PolyClassSubtype1Entity newSubtype1(final String name, int foo) {
- final PolyClassSubtype1Entity childEntity = newTransientInstance(PolyClassSubtype1Entity.class);
- childEntity.setName(name);
- childEntity.setFoo(foo);
- childEntity.setParent(this);
- this.getChildren().add(childEntity);
- persistIfNotAlready(childEntity);
- return childEntity;
- }
- // }}
-
- // {{ newSubtype2 (action)
- public PolyClassSubtype2Entity newSubtype2(final String name, String bar) {
- final PolyClassSubtype2Entity childEntity = newTransientInstance(PolyClassSubtype2Entity.class);
- childEntity.setName(name);
- childEntity.setParent(this);
- childEntity.setBar(bar);
- this.getChildren().add(childEntity);
- persistIfNotAlready(childEntity);
- return childEntity;
- }
- // }}
-
- // {{ newSubtype3 (action)
- public PolyClassSubtype3Entity newSubtype3(final String name, BigDecimal boz) {
- final PolyClassSubtype3Entity childEntity = newTransientInstance(PolyClassSubtype3Entity.class);
- childEntity.setName(name);
- childEntity.setParent(this);
- childEntity.setBoz(boz);
- this.getChildren().add(childEntity);
- persistIfNotAlready(childEntity);
- return childEntity;
- }
- // }}
-
- // {{ removeChild (action)
- public PolyClassParentEntity removeChild(final PolyClassChildEntity childEntity) {
- if (getChildren().contains(childEntity)) {
- getChildren().remove(childEntity);
- childEntity.setParent(null);
- }
- return this;
- }
-
- public List<PolyClassChildEntity> choices0RemoveChild() {
- return Arrays.asList(getChildren().toArray(new PolyClassChildEntity[0]));
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyClassParentEntityRepository.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyClassParentEntityRepository.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyClassParentEntityRepository.java
deleted file mode 100644
index a358cfd..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyClassParentEntityRepository.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.refs;
-
-import org.apache.isis.applib.annotation.*;
-import org.apache.isis.core.tck.dom.AbstractEntityRepository;
-
-@Named("PolyClassParentEntities")
-@ObjectType("PolyClassParentEntities")
-@DomainService
-public class PolyClassParentEntityRepository extends AbstractEntityRepository<PolyClassParentEntity> {
-
- public PolyClassParentEntityRepository() {
- super(PolyClassParentEntity.class, "PolyClassParentEntities");
- }
-
- @MemberOrder(sequence = "2")
- public PolyClassParentEntity newEntity(final String name) {
- final PolyClassParentEntity entity = newTransientInstance(PolyClassParentEntity.class);
- entity.setName(name);
- persist(entity);
- return entity;
- }
-
-
- @Hidden
- public void registerType(PolyClassSubtype1Entity e) { }
-
- @Hidden
- public void registerType(PolyClassSubtype2Entity e) { }
-
- @Hidden
- public void registerType(PolyClassSubtype3Entity e) { }
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyClassSubtype1Entity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyClassSubtype1Entity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyClassSubtype1Entity.java
deleted file mode 100644
index 91bb8bb..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyClassSubtype1Entity.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.refs;
-
-import javax.jdo.annotations.IdentityType;
-import javax.jdo.annotations.Inheritance;
-import javax.jdo.annotations.InheritanceStrategy;
-
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.ObjectType;
-
-@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
-@javax.jdo.annotations.Discriminator("PCS1")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@Inheritance(strategy=InheritanceStrategy.NEW_TABLE)
-@ObjectType("PCS1")
-public class PolyClassSubtype1Entity extends PolyClassChildEntity {
-
-
-
- // {{ Foo (property)
- private int foo;
-
- @MemberOrder(sequence = "1")
- public int getFoo() {
- return foo;
- }
-
- public void setFoo(final int foo) {
- this.foo = foo;
- }
- // }}
-
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyClassSubtype2Entity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyClassSubtype2Entity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyClassSubtype2Entity.java
deleted file mode 100644
index 745f518..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyClassSubtype2Entity.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.refs;
-
-import javax.jdo.annotations.IdentityType;
-import javax.jdo.annotations.Inheritance;
-import javax.jdo.annotations.InheritanceStrategy;
-
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.ObjectType;
-
-@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
-@javax.jdo.annotations.Discriminator("PCS2")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@Inheritance(strategy=InheritanceStrategy.SUPERCLASS_TABLE)
-@ObjectType("PCS2")
-public class PolyClassSubtype2Entity extends PolyClassChildEntity {
-
-
- // {{ Bar (property)
- private String bar;
-
- @MemberOrder(sequence = "1")
- public String getBar() {
- return bar;
- }
-
- public void setBar(final String bar) {
- this.bar = bar;
- }
- // }}
-
-
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyClassSubtype3Entity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyClassSubtype3Entity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyClassSubtype3Entity.java
deleted file mode 100644
index d6fdfe4..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyClassSubtype3Entity.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.refs;
-
-import javax.jdo.annotations.IdentityType;
-import javax.jdo.annotations.Inheritance;
-import javax.jdo.annotations.InheritanceStrategy;
-
-import org.apache.isis.applib.annotation.MemberOrder;
-import org.apache.isis.applib.annotation.ObjectType;
-
-@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
-@javax.jdo.annotations.Discriminator("PCS3")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@Inheritance(strategy=InheritanceStrategy.SUPERCLASS_TABLE)
-@ObjectType("PCS3")
-public class PolyClassSubtype3Entity extends PolyClassChildEntity {
-
-
-
- // {{ Baz (property)
- private java.math.BigDecimal boz;
-
- @MemberOrder(sequence = "1")
- public java.math.BigDecimal getBoz() {
- return boz;
- }
-
- public void setBoz(final java.math.BigDecimal baz) {
- this.boz = baz;
- }
- // }}
-
-
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterface.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterface.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterface.java
deleted file mode 100644
index 888f5f8..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterface.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.refs;
-
-
-public interface PolyInterface {
-
- public PolyInterfaceParentEntity getParent();
- public void setParent(PolyInterfaceParentEntity parent);
-
- public String getName();
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceIdentityStrategy.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceIdentityStrategy.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceIdentityStrategy.java
deleted file mode 100644
index c7a258d..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceIdentityStrategy.java
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-package org.apache.isis.core.tck.dom.refs;
-
-
-public interface PolyInterfaceIdentityStrategy {
-
- public PolyInterfaceIdentityStrategyParentEntity getParent();
- public void setParent(PolyInterfaceIdentityStrategyParentEntity parent);
-
- public String getName();
-
-}