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:40 UTC
[22/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/refs/PolyInterfaceIdentityStrategyParentEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceIdentityStrategyParentEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceIdentityStrategyParentEntity.java
deleted file mode 100644
index 045b67b..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceIdentityStrategyParentEntity.java
+++ /dev/null
@@ -1,129 +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.Extension;
-import javax.jdo.annotations.IdentityType;
-import javax.jdo.annotations.Join;
-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("PIIP")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@ObjectType("PIIP")
-public class PolyInterfaceIdentityStrategyParentEntity 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
- @Join
- @Extension(vendorName="datanucleus", key="mapping-strategy", value="identity")
- private Set<PolyInterfaceIdentityStrategy> children = new HashSet<PolyInterfaceIdentityStrategy>();
-
- @MemberOrder(sequence = "1")
- public Set<PolyInterfaceIdentityStrategy> getChildren() {
- return children;
- }
-
- public void setChildren(final Set<PolyInterfaceIdentityStrategy> children) {
- this.children = children;
- }
- // }}
-
-
- // {{ newSubtype1 (action)
- public PolyInterfaceIdentityStrategySubtype1Entity newSubtype1(final String name, int foo) {
- final PolyInterfaceIdentityStrategySubtype1Entity childEntity = newTransientInstance(PolyInterfaceIdentityStrategySubtype1Entity.class);
- childEntity.setName(name);
- childEntity.setFoo(foo);
- childEntity.setParent(this);
- this.getChildren().add(childEntity);
- persistIfNotAlready(childEntity);
- return childEntity;
- }
- // }}
-
- // {{ newSubtype2 (action)
- public PolyInterfaceIdentityStrategySubtype2Entity newSubtype2(final String name, String bar) {
- final PolyInterfaceIdentityStrategySubtype2Entity childEntity = newTransientInstance(PolyInterfaceIdentityStrategySubtype2Entity.class);
- childEntity.setName(name);
- childEntity.setParent(this);
- childEntity.setBar(bar);
- this.getChildren().add(childEntity);
- persistIfNotAlready(childEntity);
- return childEntity;
- }
- // }}
-
- // {{ newSubtype3 (action)
- public PolyInterfaceIdentityStrategySubtype3Entity newSubtype3(final String name, BigDecimal boz) {
- final PolyInterfaceIdentityStrategySubtype3Entity childEntity = newTransientInstance(PolyInterfaceIdentityStrategySubtype3Entity.class);
- childEntity.setName(name);
- childEntity.setParent(this);
- childEntity.setBoz(boz);
- this.getChildren().add(childEntity);
- persistIfNotAlready(childEntity);
- return childEntity;
- }
- // }}
-
- // {{ removeChild (action)
- public PolyInterfaceIdentityStrategyParentEntity removeChild(final PolyInterfaceIdentityStrategy childEntity) {
- if (getChildren().contains(childEntity)) {
- getChildren().remove(childEntity);
- childEntity.setParent(null);
- }
- return this;
- }
-
- public List<PolyInterfaceIdentityStrategy> choices0RemoveChild() {
- return Arrays.asList(getChildren().toArray(new PolyInterfaceIdentityStrategy[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/PolyInterfaceIdentityStrategyParentEntityRepository.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceIdentityStrategyParentEntityRepository.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceIdentityStrategyParentEntityRepository.java
deleted file mode 100644
index 232f177..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceIdentityStrategyParentEntityRepository.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("PolyInterfaceIdentityStrategyParentEntities")
-@ObjectType("PolyInterfaceIdentityStrategyParentEntities")
-@DomainService
-public class PolyInterfaceIdentityStrategyParentEntityRepository extends AbstractEntityRepository<PolyInterfaceIdentityStrategyParentEntity> {
-
- public PolyInterfaceIdentityStrategyParentEntityRepository() {
- super(PolyInterfaceIdentityStrategyParentEntity.class, "PolyInterfaceIdentityStrategyParentEntities");
- }
-
- @MemberOrder(sequence = "2")
- public PolyInterfaceIdentityStrategyParentEntity newEntity(final String name) {
- final PolyInterfaceIdentityStrategyParentEntity entity = newTransientInstance(PolyInterfaceIdentityStrategyParentEntity.class);
- entity.setName(name);
- persist(entity);
- return entity;
- }
-
-
- @Hidden
- public void registerType(PolyInterfaceIdentityStrategySubtype1Entity e) { }
-
- @Hidden
- public void registerType(PolyInterfaceIdentityStrategySubtype2Entity e) { }
-
- @Hidden
- public void registerType(PolyInterfaceIdentityStrategySubtype3Entity 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/PolyInterfaceIdentityStrategySubtype1Entity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceIdentityStrategySubtype1Entity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceIdentityStrategySubtype1Entity.java
deleted file mode 100644
index 461c317..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceIdentityStrategySubtype1Entity.java
+++ /dev/null
@@ -1,86 +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;
-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("PII1")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@Inheritance(strategy=InheritanceStrategy.NEW_TABLE)
-@ObjectType("PII1")
-public class PolyInterfaceIdentityStrategySubtype1Entity extends BaseEntity implements PolyInterfaceIdentityStrategy {
-
-
-
- // {{ Parent (title #1)
- private PolyInterfaceIdentityStrategyParentEntity parent;
-
- @Title(sequence="1", append="-")
- @MemberOrder(sequence = "1")
- @Optional
- public PolyInterfaceIdentityStrategyParentEntity getParent() {
- return parent;
- }
-
- public void setParent(final PolyInterfaceIdentityStrategyParentEntity 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;
- }
-
- // }}
-
-
- // {{ 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/PolyInterfaceIdentityStrategySubtype2Entity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceIdentityStrategySubtype2Entity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceIdentityStrategySubtype2Entity.java
deleted file mode 100644
index d7bacbd..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceIdentityStrategySubtype2Entity.java
+++ /dev/null
@@ -1,86 +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;
-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("PII2")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@Inheritance(strategy=InheritanceStrategy.NEW_TABLE)
-@ObjectType("PII2")
-public class PolyInterfaceIdentityStrategySubtype2Entity extends BaseEntity implements PolyInterfaceIdentityStrategy {
-
-
- // {{ Parent (title #1)
- private PolyInterfaceIdentityStrategyParentEntity parent;
-
- @Title(sequence="1", append="-")
- @MemberOrder(sequence = "1")
- @Optional
- public PolyInterfaceIdentityStrategyParentEntity getParent() {
- return parent;
- }
-
- public void setParent(final PolyInterfaceIdentityStrategyParentEntity 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;
- }
-
- // }}
-
-
- // {{ 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/PolyInterfaceIdentityStrategySubtype3Entity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceIdentityStrategySubtype3Entity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceIdentityStrategySubtype3Entity.java
deleted file mode 100644
index c15dc71..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceIdentityStrategySubtype3Entity.java
+++ /dev/null
@@ -1,87 +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;
-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("PIIS3")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@Inheritance(strategy=InheritanceStrategy.NEW_TABLE)
-@ObjectType("PIIS3")
-public class PolyInterfaceIdentityStrategySubtype3Entity extends BaseEntity implements PolyInterfaceIdentityStrategy {
-
-
-
- // {{ Parent (title #1)
- private PolyInterfaceIdentityStrategyParentEntity parent;
-
- @Title(sequence="1", append="-")
- @MemberOrder(sequence = "1")
- @Optional
- public PolyInterfaceIdentityStrategyParentEntity getParent() {
- return parent;
- }
-
- public void setParent(final PolyInterfaceIdentityStrategyParentEntity 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;
- }
-
- // }}
-
-
- // {{ 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/PolyInterfaceParentEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceParentEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceParentEntity.java
deleted file mode 100644
index 144d401..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceParentEntity.java
+++ /dev/null
@@ -1,127 +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.Join;
-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("PIPR")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@ObjectType("PIPR")
-public class PolyInterfaceParentEntity 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
- @Join
- private Set<PolyInterface> children = new HashSet<PolyInterface>();
-
- @MemberOrder(sequence = "1")
- public Set<PolyInterface> getChildren() {
- return children;
- }
-
- public void setChildren(final Set<PolyInterface> children) {
- this.children = children;
- }
- // }}
-
-
- // {{ newSubtype1 (action)
- public PolyInterfaceSubtype1Entity newSubtype1(final String name, int foo) {
- final PolyInterfaceSubtype1Entity childEntity = newTransientInstance(PolyInterfaceSubtype1Entity.class);
- childEntity.setName(name);
- childEntity.setFoo(foo);
- childEntity.setParent(this);
- this.getChildren().add(childEntity);
- persistIfNotAlready(childEntity);
- return childEntity;
- }
- // }}
-
- // {{ newSubtype2 (action)
- public PolyInterfaceSubtype2Entity newSubtype2(final String name, String bar) {
- final PolyInterfaceSubtype2Entity childEntity = newTransientInstance(PolyInterfaceSubtype2Entity.class);
- childEntity.setName(name);
- childEntity.setParent(this);
- childEntity.setBar(bar);
- this.getChildren().add(childEntity);
- persistIfNotAlready(childEntity);
- return childEntity;
- }
- // }}
-
- // {{ newSubtype3 (action)
- public PolyInterfaceSubtype3Entity newSubtype3(final String name, BigDecimal boz) {
- final PolyInterfaceSubtype3Entity childEntity = newTransientInstance(PolyInterfaceSubtype3Entity.class);
- childEntity.setName(name);
- childEntity.setParent(this);
- childEntity.setBoz(boz);
- this.getChildren().add(childEntity);
- persistIfNotAlready(childEntity);
- return childEntity;
- }
- // }}
-
- // {{ removeChild (action)
- public PolyInterfaceParentEntity removeChild(final PolyInterface childEntity) {
- if (getChildren().contains(childEntity)) {
- getChildren().remove(childEntity);
- childEntity.setParent(null);
- }
- return this;
- }
-
- public List<PolyInterface> choices0RemoveChild() {
- return Arrays.asList(getChildren().toArray(new PolyInterface[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/PolyInterfaceParentEntityRepository.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceParentEntityRepository.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceParentEntityRepository.java
deleted file mode 100644
index 5d302e4..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceParentEntityRepository.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("PolyInterfaceParentEntities")
-@ObjectType("PolyInterfaceParentEntities")
-@DomainService
-public class PolyInterfaceParentEntityRepository extends AbstractEntityRepository<PolyInterfaceParentEntity> {
-
- public PolyInterfaceParentEntityRepository() {
- super(PolyInterfaceParentEntity.class, "PolyInterfaceParentEntities");
- }
-
- @MemberOrder(sequence = "2")
- public PolyInterfaceParentEntity newEntity(final String name) {
- final PolyInterfaceParentEntity entity = newTransientInstance(PolyInterfaceParentEntity.class);
- entity.setName(name);
- persist(entity);
- return entity;
- }
-
-
- @Hidden
- public void registerType(PolyInterfaceSubtype1Entity e) { }
-
- @Hidden
- public void registerType(PolyInterfaceSubtype2Entity e) { }
-
- @Hidden
- public void registerType(PolyInterfaceSubtype3Entity 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/PolyInterfaceSubtype1Entity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceSubtype1Entity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceSubtype1Entity.java
deleted file mode 100644
index eedc86a..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceSubtype1Entity.java
+++ /dev/null
@@ -1,86 +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;
-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("PIS1")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@Inheritance(strategy=InheritanceStrategy.NEW_TABLE)
-@ObjectType("PIS1")
-public class PolyInterfaceSubtype1Entity extends BaseEntity implements PolyInterface {
-
-
-
- // {{ Parent (title #1)
- private PolyInterfaceParentEntity parent;
-
- @Title(sequence="1", append="-")
- @MemberOrder(sequence = "1")
- @Optional
- public PolyInterfaceParentEntity getParent() {
- return parent;
- }
-
- public void setParent(final PolyInterfaceParentEntity 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;
- }
-
- // }}
-
-
- // {{ 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/PolyInterfaceSubtype2Entity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceSubtype2Entity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceSubtype2Entity.java
deleted file mode 100644
index ec64f86..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceSubtype2Entity.java
+++ /dev/null
@@ -1,86 +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;
-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("PIS2")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@Inheritance(strategy=InheritanceStrategy.NEW_TABLE)
-@ObjectType("PIS2")
-public class PolyInterfaceSubtype2Entity extends BaseEntity implements PolyInterface {
-
-
- // {{ Parent (title #1)
- private PolyInterfaceParentEntity parent;
-
- @Title(sequence="1", append="-")
- @MemberOrder(sequence = "1")
- @Optional
- public PolyInterfaceParentEntity getParent() {
- return parent;
- }
-
- public void setParent(final PolyInterfaceParentEntity 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;
- }
-
- // }}
-
-
- // {{ 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/PolyInterfaceSubtype3Entity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceSubtype3Entity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceSubtype3Entity.java
deleted file mode 100644
index 134d76a..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/PolyInterfaceSubtype3Entity.java
+++ /dev/null
@@ -1,87 +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;
-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("PIS3")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@Inheritance(strategy=InheritanceStrategy.NEW_TABLE)
-@ObjectType("PIS3")
-public class PolyInterfaceSubtype3Entity extends BaseEntity implements PolyInterface {
-
-
-
- // {{ Parent (title #1)
- private PolyInterfaceParentEntity parent;
-
- @Title(sequence="1", append="-")
- @MemberOrder(sequence = "1")
- @Optional
- public PolyInterfaceParentEntity getParent() {
- return parent;
- }
-
- public void setParent(final PolyInterfaceParentEntity 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;
- }
-
- // }}
-
-
- // {{ 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/ReferencingEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/ReferencingEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/ReferencingEntity.java
deleted file mode 100644
index 645e03e..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/ReferencingEntity.java
+++ /dev/null
@@ -1,95 +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 com.google.common.collect.Lists;
-
-import org.apache.isis.applib.annotation.NotPersisted;
-import org.apache.isis.applib.annotation.ObjectType;
-
-@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
-@javax.jdo.annotations.Discriminator("RFCG")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@ObjectType("RFCG")
-public class ReferencingEntity extends BaseEntity {
-
-
- // {{ Reference
- private SimpleEntity reference;
-
- public SimpleEntity getReference() {
- return reference;
- }
-
- public void setReference(final SimpleEntity reference) {
- this.reference = reference;
- }
-
- // }}
-
- // {{ AggregatedEntity
- private AggregatedEntity aggregatedReference;
-
- public AggregatedEntity getAggregatedReference() {
- return aggregatedReference;
- }
-
- public void setAggregatedReference(final AggregatedEntity aggregatedReference) {
- this.aggregatedReference = aggregatedReference;
- }
-
- public AggregatedEntity addAggregatedReference() {
- final AggregatedEntity aggregatedEntity = newAggregatedInstance(AggregatedEntity.class);
- setAggregatedReference(aggregatedEntity);
- return aggregatedEntity;
- }
- // }}
-
- // {{ AggregatedEntities
- private List<AggregatedEntity> aggregatedEntities = Lists.newArrayList();
-
- public List<AggregatedEntity> getAggregatedEntities() {
- return aggregatedEntities;
- }
-
- public void setAggregatedEntities(List<AggregatedEntity> aggregatedEntities) {
- this.aggregatedEntities = aggregatedEntities;
- }
-
- public AggregatedEntity addAggregatedEntityToCollection() {
- final AggregatedEntity aggregatedEntity = newAggregatedInstance(AggregatedEntity.class);
- getAggregatedEntities().add(aggregatedEntity);
- return aggregatedEntity;
- }
- // }}
-
- // {{ NotPersisted
- @NotPersisted
- public SimpleEntity getNotPersisted() {
- throw new org.apache.isis.applib.NonRecoverableException("unexpected call");
- }
- // }}
-
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/SimpleEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/SimpleEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/SimpleEntity.java
deleted file mode 100644
index 89c3fc4..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/SimpleEntity.java
+++ /dev/null
@@ -1,104 +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.Date;
-
-import javax.jdo.annotations.IdentityType;
-
-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;
-
-@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
-@javax.jdo.annotations.Discriminator("SMPL")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@ObjectType("SMPL")
-public class SimpleEntity extends BaseEntity {
-
- // {{ name: String (title)
- private String name;
-
- @Title
- @MemberOrder(sequence = "1")
- public String getName() {
- return name;
- }
-
- public void setName(final String name) {
- this.name = name;
- }
-
- // }}
-
- // {{ Date: java.util.Date
- private Date date;
-
- @Optional
- @MemberOrder(sequence = "1")
- public Date getDate() {
- return date;
- }
-
- public void setDate(final Date date) {
- this.date = date;
- }
- // }}
-
- // {{ Size: int
- private int size;
-
- @MemberOrder(sequence = "1")
- public int getSize() {
- return size;
- }
-
- public void setSize(final int size) {
- this.size = size;
- }
-
- // }}
-
- // {{ Nullable: long
- private Long number;
-
- @Optional
- @MemberOrder(sequence = "1")
- public Long getNullable() {
- return number;
- }
-
- public void setNullable(final Long number) {
- this.number = number;
- }
-
- // }}
-
- // {{ NotPersisted: int (nb: throws exception if called)
- @NotPersisted
- public int getNotPersisted() {
- throw new org.apache.isis.applib.NonRecoverableException("unexpected call");
- }
- // }}
-
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirFkChildEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirFkChildEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirFkChildEntity.java
deleted file mode 100644
index 8015cbc..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirFkChildEntity.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 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.Title;
-
-@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
-@javax.jdo.annotations.Discriminator("UDFC")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@ObjectType("UDFC")
-public class UnidirFkChildEntity extends AbstractDomainObject {
-
-
- // {{ Name (title)
- private String name;
-
- @Title(sequence="1")
- @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/UnidirFkParentEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirFkParentEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirFkParentEntity.java
deleted file mode 100644
index f2be389..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirFkParentEntity.java
+++ /dev/null
@@ -1,101 +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 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("UDFP")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@ObjectType("UDFP")
-public class UnidirFkParentEntity 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
- private Set<UnidirFkChildEntity> children = new HashSet<UnidirFkChildEntity>();
-
- public Set<UnidirFkChildEntity> getChildren() {
- return children;
- }
-
- public void setChildren(final Set<UnidirFkChildEntity> children) {
- this.children = children;
- }
- // }}
-
-
- // {{ newChild (action)
- public UnidirFkChildEntity newChild(final String name) {
- final UnidirFkChildEntity childEntity = newTransientInstance(UnidirFkChildEntity.class);
- childEntity.setName(name);
- addChild(childEntity);
- return childEntity;
- }
- // }}
-
-
- // {{ removeChild (action)
- public void addChild(UnidirFkChildEntity childEntity) {
- this.getChildren().add(childEntity);
- persistIfNotAlready(childEntity);
- }
- // }}
-
- // {{ removeChild (action)
- public UnidirFkParentEntity removeChild(final UnidirFkChildEntity childEntity) {
- if (getChildren().contains(childEntity)) {
- getChildren().remove(childEntity);
- }
- return this;
- }
-
- public List<UnidirFkChildEntity> choices0RemoveChild() {
- return Arrays.asList(getChildren().toArray(new UnidirFkChildEntity[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/UnidirFkParentEntityRepository.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirFkParentEntityRepository.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirFkParentEntityRepository.java
deleted file mode 100644
index 5277df6..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirFkParentEntityRepository.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("UnidirFkParentEntities")
-@ObjectType("UnidirFkParentEntities")
-@DomainService
-public class UnidirFkParentEntityRepository extends AbstractEntityRepository<UnidirFkParentEntity> {
-
- public UnidirFkParentEntityRepository() {
- super(UnidirFkParentEntity.class, "UnidirParentEntities");
- }
-
- @MemberOrder(sequence = "2")
- public UnidirFkParentEntity newEntity(final String name) {
- final UnidirFkParentEntity entity = newTransientInstance(UnidirFkParentEntity.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/UnidirJoinChildEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirJoinChildEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirJoinChildEntity.java
deleted file mode 100644
index 6452ee6..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirJoinChildEntity.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 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.Title;
-
-@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
-@javax.jdo.annotations.Discriminator("UDJC")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@ObjectType("UDJC")
-public class UnidirJoinChildEntity extends AbstractDomainObject {
-
-
- // {{ Name (title)
- private String name;
-
- @Title(sequence="1")
- @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/UnidirJoinParentEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirJoinParentEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirJoinParentEntity.java
deleted file mode 100644
index 3cf7dcc..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirJoinParentEntity.java
+++ /dev/null
@@ -1,103 +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.Join;
-
-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("UDJP")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@ObjectType("UDJP")
-public class UnidirJoinParentEntity 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
- @Join
- private Set<UnidirJoinChildEntity> children = new HashSet<UnidirJoinChildEntity>();
-
- public Set<UnidirJoinChildEntity> getChildren() {
- return children;
- }
-
- public void setChildren(final Set<UnidirJoinChildEntity> children) {
- this.children = children;
- }
- // }}
-
-
- // {{ newChild (action)
- public UnidirJoinChildEntity newChild(final String name) {
- final UnidirJoinChildEntity childEntity = newTransientInstance(UnidirJoinChildEntity.class);
- childEntity.setName(name);
- addChild(childEntity);
- return childEntity;
- }
- // }}
-
-
- // {{ removeChild (action)
- public void addChild(UnidirJoinChildEntity childEntity) {
- this.getChildren().add(childEntity);
- persistIfNotAlready(childEntity);
- }
- // }}
-
- // {{ removeChild (action)
- public UnidirJoinParentEntity removeChild(final UnidirJoinChildEntity childEntity) {
- if (getChildren().contains(childEntity)) {
- getChildren().remove(childEntity);
- }
- return this;
- }
-
- public List<UnidirFkChildEntity> choices0RemoveChild() {
- return Arrays.asList(getChildren().toArray(new UnidirFkChildEntity[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/UnidirJoinParentEntityRepository.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirJoinParentEntityRepository.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirJoinParentEntityRepository.java
deleted file mode 100644
index 47da2d4..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirJoinParentEntityRepository.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("UnidirJoinParentEntities")
-@ObjectType("UnidirJoinParentEntities")
-@DomainService
-public class UnidirJoinParentEntityRepository extends AbstractEntityRepository<UnidirJoinParentEntity> {
-
- public UnidirJoinParentEntityRepository() {
- super(UnidirJoinParentEntity.class, "UnidirJoinParentEntities");
- }
-
- @MemberOrder(sequence = "2")
- public UnidirJoinParentEntity newEntity(final String name) {
- final UnidirJoinParentEntity entity = newTransientInstance(UnidirJoinParentEntity.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/UnidirReferencedEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirReferencedEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirReferencedEntity.java
deleted file mode 100644
index 9049cad..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirReferencedEntity.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 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.Title;
-
-@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
-@javax.jdo.annotations.Discriminator("UDRD")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@ObjectType("UDRD")
-public class UnidirReferencedEntity extends AbstractDomainObject {
-
-
- // {{ Name (title)
- private String name;
-
- @Title(sequence="1")
- @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/UnidirReferencedEntityRepository.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirReferencedEntityRepository.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirReferencedEntityRepository.java
deleted file mode 100644
index 6decf98..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirReferencedEntityRepository.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("UnidirReferencedEntities")
-@ObjectType("UnidirReferencedEntities")
-@DomainService
-public class UnidirReferencedEntityRepository extends AbstractEntityRepository<UnidirReferencedEntity> {
-
- public UnidirReferencedEntityRepository() {
- super(UnidirReferencedEntity.class, "UnidirReferencedEntities");
- }
-
- @MemberOrder(sequence = "2")
- public UnidirReferencedEntity newEntity(final String name) {
- final UnidirReferencedEntity entity = newTransientInstance(UnidirReferencedEntity.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/UnidirReferencingEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirReferencingEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirReferencingEntity.java
deleted file mode 100644
index 170968f..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirReferencingEntity.java
+++ /dev/null
@@ -1,66 +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 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("UDRG")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@ObjectType("UDRG")
-public class UnidirReferencingEntity 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;
- }
-
- // }}
-
-
- // {{ Referenced (property)
- public UnidirReferencedEntity referenced;
-
- @MemberOrder(sequence = "1")
- public UnidirReferencedEntity getReferenced() {
- return referenced;
- }
-
- public void setReferenced(final UnidirReferencedEntity referenced) {
- this.referenced = referenced;
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirReferencingEntityRepository.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirReferencingEntityRepository.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirReferencingEntityRepository.java
deleted file mode 100644
index 9100601..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/refs/UnidirReferencingEntityRepository.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("UnidirReferencingEntities")
-@ObjectType("UnidirReferencingEntities")
-@DomainService
-public class UnidirReferencingEntityRepository extends AbstractEntityRepository<UnidirReferencingEntity> {
-
- public UnidirReferencingEntityRepository() {
- super(UnidirReferencingEntity.class, "UnidirReferencingEntities");
- }
-
- @MemberOrder(sequence = "2")
- public UnidirReferencingEntity newEntity(final String name) {
- final UnidirReferencingEntity entity = newTransientInstance(UnidirReferencingEntity.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/scalars/ApplibValuedEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/scalars/ApplibValuedEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/scalars/ApplibValuedEntity.java
deleted file mode 100644
index 0206039..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/scalars/ApplibValuedEntity.java
+++ /dev/null
@@ -1,267 +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.scalars;
-
-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;
-import org.apache.isis.applib.value.Color;
-import org.apache.isis.applib.value.Date;
-import org.apache.isis.applib.value.DateTime;
-import org.apache.isis.applib.value.Image;
-import org.apache.isis.applib.value.Money;
-import org.apache.isis.applib.value.Password;
-import org.apache.isis.applib.value.Percentage;
-import org.apache.isis.applib.value.Time;
-import org.apache.isis.applib.value.TimeStamp;
-
-@javax.jdo.annotations.PersistenceCapable
-@javax.jdo.annotations.Discriminator("APLV")
-@javax.jdo.annotations.Query(
- name="jdkv_findByStringProperty", language="JDOQL",
- value="SELECT FROM org.apache.isis.tck.dom.scalars.ApplibValuedEntity WHERE stringProperty == :i")
-@ObjectType("APLV")
-public class ApplibValuedEntity extends AbstractDomainObject {
-
-
- // {{ StringProperty (also title, pk)
- private String stringProperty;
-
- @javax.jdo.annotations.PrimaryKey
- @Title
- @Optional
- @MemberOrder(sequence = "1")
- public String getStringProperty() {
- return stringProperty;
- }
-
- public void setStringProperty(final String description) {
- this.stringProperty = description;
- }
-
- public ApplibValuedEntity updateStringProperty(
- @Optional final String description) {
- setStringProperty(stringProperty);
- return this;
- }
-
- // }}
-
-
-
- // {{ DateProperty
- @javax.jdo.annotations.Persistent
- private Date dateProperty;
-
- @Optional
- @MemberOrder(sequence = "1")
- public Date getDateProperty() {
- return dateProperty;
- }
-
- public void setDateProperty(final Date dateProperty) {
- this.dateProperty = dateProperty;
- }
-
- public ApplibValuedEntity updateDateProperty(
- @Optional final Date dateProperty) {
- setDateProperty(dateProperty);
- return this;
- }
-
- // }}
-
- // {{ ColorProperty
- @javax.jdo.annotations.NotPersistent
- private Color colorProperty;
-
- @Optional
- @MemberOrder(sequence = "1")
- public Color getColorProperty() {
- return colorProperty;
- }
-
- public void setColorProperty(final Color colorProperty) {
- this.colorProperty = colorProperty;
- }
-
- public ApplibValuedEntity updateColorProperty(
- @Optional final Color colorProperty) {
- setColorProperty(colorProperty);
- return this;
- }
-
- // }}
-
- // {{ DateTimeProperty
- @javax.jdo.annotations.NotPersistent
- private DateTime dateTimeProperty;
-
- @Optional
- @MemberOrder(sequence = "1")
- public DateTime getDateTimeProperty() {
- return dateTimeProperty;
- }
-
- public void setDateTimeProperty(final DateTime dateTimeProperty) {
- this.dateTimeProperty = dateTimeProperty;
- }
-
- public ApplibValuedEntity updateDateTimeProperty(
- @Optional final DateTime dateTimeProperty) {
- setDateTimeProperty(dateTimeProperty);
- return this;
- }
- // }}
-
- // {{ ImageProperty
- @javax.jdo.annotations.NotPersistent
- private Image imageProperty;
-
- @Optional
- @MemberOrder(sequence = "1")
- public Image getImageProperty() {
- return imageProperty;
- }
-
- public void setImageProperty(final Image imageProperty) {
- this.imageProperty = imageProperty;
- }
-
- public ApplibValuedEntity updateImageProperty(
- @Optional final Image imageProperty) {
- setImageProperty(imageProperty);
- return this;
- }
-
- // }}
-
- // {{ MoneyProperty
- @javax.jdo.annotations.NotPersistent
- private Money moneyProperty;
-
- @Optional
- @MemberOrder(sequence = "1")
- public Money getMoneyProperty() {
- return moneyProperty;
- }
-
- public void setMoneyProperty(final Money moneyProperty) {
- this.moneyProperty = moneyProperty;
- }
-
- public ApplibValuedEntity updateMoneyProperty(
- @Optional final Money moneyProperty) {
- this.moneyProperty = moneyProperty;
- return this;
- }
-
- // }}
-
- // {{ PasswordProperty
- @javax.jdo.annotations.NotPersistent
- private Password passwordProperty;
-
- @Optional
- @MemberOrder(sequence = "1")
- public Password getPasswordProperty() {
- return passwordProperty;
- }
-
- public void setPasswordProperty(final Password passwordProperty) {
- this.passwordProperty = passwordProperty;
- }
-
- public ApplibValuedEntity updatePasswordProperty(
- @Optional final Password passwordProperty) {
- setPasswordProperty(passwordProperty);
- return this;
- }
-
- // }}
-
- // {{ PercentageProperty
- @javax.jdo.annotations.NotPersistent
- private Percentage percentageProperty;
-
- @Optional
- @MemberOrder(sequence = "1")
- public Percentage getPercentageProperty() {
- return percentageProperty;
- }
-
- public void setPercentageProperty(final Percentage percentageProperty) {
- this.percentageProperty = percentageProperty;
- }
-
- public ApplibValuedEntity updatePercentageProperty(
- @Optional final Percentage percentageProperty) {
- setPercentageProperty(percentageProperty);
- return this;
- }
-
- // }}
-
- // {{ TimeProperty
- @javax.jdo.annotations.NotPersistent
- private Time timeProperty;
-
- @Optional
- @MemberOrder(sequence = "1")
- public Time getTimeProperty() {
- return timeProperty;
- }
-
- public void setTimeProperty(final Time timeProperty) {
- this.timeProperty = timeProperty;
- }
-
- public ApplibValuedEntity updateTimeProperty(
- @Optional final Time timeProperty) {
- setTimeProperty(timeProperty);
- return this;
- }
-
- // }}
-
- // {{ TimeStampProperty
- @javax.jdo.annotations.NotPersistent
- private TimeStamp timeStampProperty;
-
- @Optional
- @MemberOrder(sequence = "1")
- public TimeStamp getTimeStampProperty() {
- return timeStampProperty;
- }
-
- public void setTimestampProperty(final TimeStamp timestampProperty) {
- this.timeStampProperty = timestampProperty;
- }
-
- public ApplibValuedEntity updateTimestampProperty(
- @Optional final TimeStamp timestampProperty) {
- setTimestampProperty(timestampProperty);
- return this;
- }
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/scalars/ApplibValuedEntityRepository.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/scalars/ApplibValuedEntityRepository.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/scalars/ApplibValuedEntityRepository.java
deleted file mode 100644
index 79c982d..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/scalars/ApplibValuedEntityRepository.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.scalars;
-
-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("ApplibValuedEntities")
-@ObjectType("ApplibValuedEntities")
-@DomainService
-public class ApplibValuedEntityRepository extends AbstractEntityRepository<ApplibValuedEntity> {
-
- public ApplibValuedEntityRepository() {
- super(ApplibValuedEntity.class, "ApplibValuedEntities");
- }
-
- /**
- * Required to discover the ApplibValuedEntity type.
- */
- @Override
- @MemberOrder(sequence = "2")
- public ApplibValuedEntity newEntity() {
- return super.newEntity();
- }
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/scalars/AutoAssignedEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/scalars/AutoAssignedEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/scalars/AutoAssignedEntity.java
deleted file mode 100644
index 46be149..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/scalars/AutoAssignedEntity.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.scalars;
-
-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("AUAS")
-@javax.jdo.annotations.DatastoreIdentity(strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY)
-@ObjectType("AUAS")
-public class AutoAssignedEntity extends AbstractDomainObject {
-
-
- // {{ StringProperty (used in title)
- private String stringProperty;
-
- @Title(sequence="2")
- @Optional
- @MemberOrder(sequence = "1")
- public String getStringProperty() {
- return stringProperty;
- }
-
- public void setStringProperty(final String description) {
- this.stringProperty = description;
- }
-
- // }}
-
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/scalars/AutoAssignedEntityRepository.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/scalars/AutoAssignedEntityRepository.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/scalars/AutoAssignedEntityRepository.java
deleted file mode 100644
index 9de9e87..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/scalars/AutoAssignedEntityRepository.java
+++ /dev/null
@@ -1,43 +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.scalars;
-
-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("AutoAssignedEntities")
-@ObjectType("AutoAssignedEntities")
-public class AutoAssignedEntityRepository extends AbstractEntityRepository<AutoAssignedEntity> {
-
- public AutoAssignedEntityRepository() {
- super(AutoAssignedEntity.class, "AutoAssignedEntities");
- }
-
- /**
- * Required to discover the AutoAssignedEntity type.
- */
- @Override
- @MemberOrder(sequence = "2")
- public AutoAssignedEntity newEntity() {
- return super.newEntity();
- }
-}
http://git-wip-us.apache.org/repos/asf/isis/blob/93a1d5cc/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/scalars/DateTimeValuedEntity.java
----------------------------------------------------------------------
diff --git a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/scalars/DateTimeValuedEntity.java b/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/scalars/DateTimeValuedEntity.java
deleted file mode 100644
index 1985e16..0000000
--- a/tck/tck-dom/src/main/java/org/apache/isis/core/tck/dom/scalars/DateTimeValuedEntity.java
+++ /dev/null
@@ -1,171 +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.scalars;
-
-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;
-
-/**
- * TODO: delete ... OVERLAPS WITH ApplibValuedEntity, JdkValuedEntity, JodaValuedEntity
- *
- * @deprecated
- */
-@javax.jdo.annotations.PersistenceCapable
-@javax.jdo.annotations.Discriminator("APLV")
-@javax.jdo.annotations.Query(
- name="dtmv_findByStringProperty", language="JDOQL",
- value="SELECT FROM org.apache.isis.tck.dom.scalars.DateTimeValuedEntity WHERE stringProperty == :i")
-@ObjectType("APLV")
-@Deprecated
-public class DateTimeValuedEntity extends AbstractDomainObject {
-
-
- // {{ StringProperty (also title, pk)
- private String stringProperty;
-
- @javax.jdo.annotations.PrimaryKey
- @Title
- @Optional
- @MemberOrder(sequence = "1")
- public String getStringProperty() {
- return stringProperty;
- }
-
- public void setStringProperty(final String stringProperty) {
- this.stringProperty = stringProperty;
- }
- // }}
-
-
- // {{ JavaUtilDate (property)
- private java.util.Date javaUtilDate;
-
- @Optional
- @MemberOrder(name="dates", sequence = "1")
- public java.util.Date getJavaUtilDate() {
- return javaUtilDate;
- }
-
- public void setJavaUtilDate(final java.util.Date javaUtilDate) {
- this.javaUtilDate = javaUtilDate;
- }
- // }}
-
- // {{ JavaSqlDate (property)
- private java.sql.Date javaSqlDate;
-
- @javax.jdo.annotations.Persistent
- @Optional
- @MemberOrder(name="dates", sequence = "1")
- public java.sql.Date getJavaSqlDate() {
- return javaSqlDate;
- }
-
- public void setJavaSqlDate(final java.sql.Date javaSqlDate) {
- this.javaSqlDate = javaSqlDate;
- }
-
- public DateTimeValuedEntity updateJavaSqlDate(
- @Optional final java.sql.Date javaSqlDate) {
- setJavaSqlDate(javaSqlDate);
- return this;
- }
- // }}
-
- // {{ ApplibDate (property)
- private org.apache.isis.applib.value.Date applibDate;
-
- @javax.jdo.annotations.Persistent
- @Optional
- @MemberOrder(name="dates", sequence = "1")
- public org.apache.isis.applib.value.Date getApplibDate() {
- return applibDate;
- }
-
- public void setApplibDate(final org.apache.isis.applib.value.Date applibDate) {
- this.applibDate = applibDate;
- }
- // }}
-
- // {{ ApplibDateTime (property)
- private org.apache.isis.applib.value.DateTime applibDateTime;
-
- @javax.jdo.annotations.Persistent
- @Optional
- @MemberOrder(name="dates", sequence = "1")
- public org.apache.isis.applib.value.DateTime getApplibDateTime() {
- return applibDateTime;
- }
-
- public void setApplibDateTime(final org.apache.isis.applib.value.DateTime applibDateTime) {
- this.applibDateTime = applibDateTime;
- }
- // }}
-
- // {{ JodaLocalDateTime (property)
- private org.joda.time.LocalDateTime jodaLocalDateTime;
-
- @javax.jdo.annotations.Persistent
- @Optional
- @MemberOrder(name="dates", sequence = "1")
- public org.joda.time.LocalDateTime getJodaLocalDateTime() {
- return jodaLocalDateTime;
- }
- public void setJodaLocalDateTime(final org.joda.time.LocalDateTime jodaLocalDateTime) {
- this.jodaLocalDateTime = jodaLocalDateTime;
- }
- // }}
-
- // {{ JodaLocalDate (property)
- private org.joda.time.LocalDate jodaLocalDate;
-
- @javax.jdo.annotations.Persistent
- @Optional
- @MemberOrder(name="dates", sequence = "1")
- public org.joda.time.LocalDate getJodaLocalDate() {
- return jodaLocalDate;
- }
-
- public void setJodaLocalDate(final org.joda.time.LocalDate jodaLocalDate) {
- this.jodaLocalDate = jodaLocalDate;
- }
- // }}
-
-
- // {{ JodaDateTime (property)
- private org.joda.time.DateTime jodaDateTime;
-
- @javax.jdo.annotations.Persistent
- @Optional
- @MemberOrder(name="dates", sequence = "1")
- public org.joda.time.DateTime getJodaDateTime() {
- return jodaDateTime;
- }
-
- public void setJodaDateTime(final org.joda.time.DateTime jodaDateTime) {
- this.jodaDateTime = jodaDateTime;
- }
- // }}
-
-
-}