This is an automated email from the ASF dual-hosted git repository. ahuber pushed a commit to branch spring6 in repository https://gitbox.apache.org/repos/asf/isis.git
commit 0a55a90bf66f50dc2fbc5ab9ba05e859c8909066 Merge: 3b0ceab960 2763905841 Author: Andi Huber <[email protected]> AuthorDate: Wed Dec 21 09:26:01 2022 +0100 ISIS-3275: [Incubating] Migrate from Spring Framework 5.x to 6.x .../core/metamodel/object/ManagedObjects.java | 2 +- .../core/metamodel/object/ManagedObjectTest.java | 121 +++++++++++++++++++++ .../DomainObjectLayout/DomainObjectLayoutMenu.java | 111 ++++++++----------- .../DomainObjectLayoutBookmarkingVm.java | 58 ++++++++++ .../cssClass/DomainObjectLayoutCssClassVm.java | 58 ++++++++++ .../cssClassFa/DomainObjectLayoutCssClassFaVm.java | 58 ++++++++++ .../DomainObjectLayoutDescribedAsVm.java | 58 ++++++++++ .../named/DomainObjectLayoutNamedVm.java | 58 ++++++++++ .../paged/DomainObjectLayoutPagedVm.java | 58 ++++++++++ .../plural/DomainObjectLayoutPluralVm.java | 58 ++++++++++ .../xxxUiEvent/DomainObjectLayoutXxxUiEventVm.java | 58 ++++++++++ .../bookmarkedpages/BookmarkedPagesPanel.java | 3 +- 12 files changed, 634 insertions(+), 67 deletions(-) diff --cc examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/DomainObjectLayoutMenu.java index 9e8625770e,7f06cb87e1..f0b1242464 --- a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/DomainObjectLayoutMenu.java +++ b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/DomainObjectLayoutMenu.java @@@ -18,8 -18,10 +18,10 @@@ */ package demoapp.dom.domain.objects.DomainObjectLayout; -import javax.inject.Named; +import jakarta.inject.Named; + import org.springframework.beans.factory.annotation.Autowired; + import org.apache.causeway.applib.annotation.Action; import org.apache.causeway.applib.annotation.ActionLayout; import org.apache.causeway.applib.annotation.DomainService; diff --cc examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/bookmarking/DomainObjectLayoutBookmarkingVm.java index 0000000000,48b17e175b..5e8c2e54ce mode 000000,100644..100644 --- a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/bookmarking/DomainObjectLayoutBookmarkingVm.java +++ b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/bookmarking/DomainObjectLayoutBookmarkingVm.java @@@ -1,0 -1,58 +1,58 @@@ + /* + * 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 demoapp.dom.domain.objects.DomainObjectLayout.bookmarking; + -import javax.inject.Named; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; ++import jakarta.inject.Named; ++import jakarta.xml.bind.annotation.XmlAccessType; ++import jakarta.xml.bind.annotation.XmlAccessorType; ++import jakarta.xml.bind.annotation.XmlElement; ++import jakarta.xml.bind.annotation.XmlRootElement; ++import jakarta.xml.bind.annotation.XmlType; + + import org.apache.causeway.applib.annotation.DomainObject; + import org.apache.causeway.applib.annotation.Nature; + import org.apache.causeway.applib.annotation.ObjectSupport; + import org.apache.causeway.applib.annotation.Optionality; + import org.apache.causeway.applib.annotation.Property; + + import demoapp.dom._infra.asciidocdesc.HasAsciiDocDescription; + import lombok.Getter; + import lombok.Setter; + + //tag::class[] + @XmlRootElement(name = "root") + @XmlType + @XmlAccessorType(XmlAccessType.FIELD) + @Named("demo.DomainObjectLayoutBookmarkingVm") + @DomainObject( + nature=Nature.VIEW_MODEL) + public class DomainObjectLayoutBookmarkingVm implements HasAsciiDocDescription { + + @ObjectSupport public String title() { + return "DomainObjectLayout#bookmarking"; + } + + //TODO + @Property(optionality = Optionality.OPTIONAL) + @XmlElement(required = false) + @Getter @Setter + private String dummy; + + } + //end::class[] diff --cc examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/cssClass/DomainObjectLayoutCssClassVm.java index 0000000000,32bb3f4d8e..64297b8662 mode 000000,100644..100644 --- a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/cssClass/DomainObjectLayoutCssClassVm.java +++ b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/cssClass/DomainObjectLayoutCssClassVm.java @@@ -1,0 -1,58 +1,58 @@@ + /* + * 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 demoapp.dom.domain.objects.DomainObjectLayout.cssClass; + -import javax.inject.Named; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; ++import jakarta.inject.Named; ++import jakarta.xml.bind.annotation.XmlAccessType; ++import jakarta.xml.bind.annotation.XmlAccessorType; ++import jakarta.xml.bind.annotation.XmlElement; ++import jakarta.xml.bind.annotation.XmlRootElement; ++import jakarta.xml.bind.annotation.XmlType; + + import org.apache.causeway.applib.annotation.DomainObject; + import org.apache.causeway.applib.annotation.Nature; + import org.apache.causeway.applib.annotation.ObjectSupport; + import org.apache.causeway.applib.annotation.Optionality; + import org.apache.causeway.applib.annotation.Property; + + import demoapp.dom._infra.asciidocdesc.HasAsciiDocDescription; + import lombok.Getter; + import lombok.Setter; + + //tag::class[] + @XmlRootElement(name = "root") + @XmlType + @XmlAccessorType(XmlAccessType.FIELD) + @Named("demo.DomainObjectLayoutCssClassVm") + @DomainObject( + nature=Nature.VIEW_MODEL) + public class DomainObjectLayoutCssClassVm implements HasAsciiDocDescription { + + @ObjectSupport public String title() { + return "DomainObjectLayout#cssClass"; + } + + //TODO + @Property(optionality = Optionality.OPTIONAL) + @XmlElement(required = false) + @Getter @Setter + private String dummy; + + } + //end::class[] diff --cc examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/cssClassFa/DomainObjectLayoutCssClassFaVm.java index 0000000000,9d1e4ac0f0..2769f39b2b mode 000000,100644..100644 --- a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/cssClassFa/DomainObjectLayoutCssClassFaVm.java +++ b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/cssClassFa/DomainObjectLayoutCssClassFaVm.java @@@ -1,0 -1,58 +1,58 @@@ + /* + * 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 demoapp.dom.domain.objects.DomainObjectLayout.cssClassFa; + -import javax.inject.Named; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; ++import jakarta.inject.Named; ++import jakarta.xml.bind.annotation.XmlAccessType; ++import jakarta.xml.bind.annotation.XmlAccessorType; ++import jakarta.xml.bind.annotation.XmlElement; ++import jakarta.xml.bind.annotation.XmlRootElement; ++import jakarta.xml.bind.annotation.XmlType; + + import org.apache.causeway.applib.annotation.DomainObject; + import org.apache.causeway.applib.annotation.Nature; + import org.apache.causeway.applib.annotation.ObjectSupport; + import org.apache.causeway.applib.annotation.Optionality; + import org.apache.causeway.applib.annotation.Property; + + import demoapp.dom._infra.asciidocdesc.HasAsciiDocDescription; + import lombok.Getter; + import lombok.Setter; + + //tag::class[] + @XmlRootElement(name = "root") + @XmlType + @XmlAccessorType(XmlAccessType.FIELD) + @Named("demo.DomainObjectLayoutCssClassFaVm") + @DomainObject( + nature=Nature.VIEW_MODEL) + public class DomainObjectLayoutCssClassFaVm implements HasAsciiDocDescription { + + @ObjectSupport public String title() { + return "DomainObjectLayout#cssClassFa"; + } + + //TODO + @Property(optionality = Optionality.OPTIONAL) + @XmlElement(required = false) + @Getter @Setter + private String dummy; + + } + //end::class[] diff --cc examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsVm.java index 0000000000,4bf73bb9be..7ee0c7e922 mode 000000,100644..100644 --- a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsVm.java +++ b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/describedAs/DomainObjectLayoutDescribedAsVm.java @@@ -1,0 -1,58 +1,58 @@@ + /* + * 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 demoapp.dom.domain.objects.DomainObjectLayout.describedAs; + -import javax.inject.Named; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; ++import jakarta.inject.Named; ++import jakarta.xml.bind.annotation.XmlAccessType; ++import jakarta.xml.bind.annotation.XmlAccessorType; ++import jakarta.xml.bind.annotation.XmlElement; ++import jakarta.xml.bind.annotation.XmlRootElement; ++import jakarta.xml.bind.annotation.XmlType; + + import org.apache.causeway.applib.annotation.DomainObject; + import org.apache.causeway.applib.annotation.Nature; + import org.apache.causeway.applib.annotation.ObjectSupport; + import org.apache.causeway.applib.annotation.Optionality; + import org.apache.causeway.applib.annotation.Property; + + import demoapp.dom._infra.asciidocdesc.HasAsciiDocDescription; + import lombok.Getter; + import lombok.Setter; + + //tag::class[] + @XmlRootElement(name = "root") + @XmlType + @XmlAccessorType(XmlAccessType.FIELD) + @Named("demo.DomainObjectLayoutDescribedAsVm") + @DomainObject( + nature=Nature.VIEW_MODEL) + public class DomainObjectLayoutDescribedAsVm implements HasAsciiDocDescription { + + @ObjectSupport public String title() { + return "DomainObjectLayout#describedAs"; + } + + //TODO + @Property(optionality = Optionality.OPTIONAL) + @XmlElement(required = false) + @Getter @Setter + private String dummy; + + } + //end::class[] diff --cc examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/DomainObjectLayoutNamedVm.java index 0000000000,eb33b5ed95..129e4af7a3 mode 000000,100644..100644 --- a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/DomainObjectLayoutNamedVm.java +++ b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/named/DomainObjectLayoutNamedVm.java @@@ -1,0 -1,58 +1,58 @@@ + /* + * 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 demoapp.dom.domain.objects.DomainObjectLayout.named; + -import javax.inject.Named; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; ++import jakarta.inject.Named; ++import jakarta.xml.bind.annotation.XmlAccessType; ++import jakarta.xml.bind.annotation.XmlAccessorType; ++import jakarta.xml.bind.annotation.XmlElement; ++import jakarta.xml.bind.annotation.XmlRootElement; ++import jakarta.xml.bind.annotation.XmlType; + + import org.apache.causeway.applib.annotation.DomainObject; + import org.apache.causeway.applib.annotation.Nature; + import org.apache.causeway.applib.annotation.ObjectSupport; + import org.apache.causeway.applib.annotation.Optionality; + import org.apache.causeway.applib.annotation.Property; + + import demoapp.dom._infra.asciidocdesc.HasAsciiDocDescription; + import lombok.Getter; + import lombok.Setter; + + //tag::class[] + @XmlRootElement(name = "root") + @XmlType + @XmlAccessorType(XmlAccessType.FIELD) + @Named("demo.DomainObjectLayoutNamedVm") + @DomainObject( + nature=Nature.VIEW_MODEL) + public class DomainObjectLayoutNamedVm implements HasAsciiDocDescription { + + @ObjectSupport public String title() { + return "DomainObjectLayout#named"; + } + + //TODO + @Property(optionality = Optionality.OPTIONAL) + @XmlElement(required = false) + @Getter @Setter + private String dummy; + + } + //end::class[] diff --cc examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/DomainObjectLayoutPagedVm.java index 0000000000,7b04622f8d..67101f8c68 mode 000000,100644..100644 --- a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/DomainObjectLayoutPagedVm.java +++ b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/paged/DomainObjectLayoutPagedVm.java @@@ -1,0 -1,58 +1,58 @@@ + /* + * 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 demoapp.dom.domain.objects.DomainObjectLayout.paged; + -import javax.inject.Named; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; ++import jakarta.inject.Named; ++import jakarta.xml.bind.annotation.XmlAccessType; ++import jakarta.xml.bind.annotation.XmlAccessorType; ++import jakarta.xml.bind.annotation.XmlElement; ++import jakarta.xml.bind.annotation.XmlRootElement; ++import jakarta.xml.bind.annotation.XmlType; + + import org.apache.causeway.applib.annotation.DomainObject; + import org.apache.causeway.applib.annotation.Nature; + import org.apache.causeway.applib.annotation.ObjectSupport; + import org.apache.causeway.applib.annotation.Optionality; + import org.apache.causeway.applib.annotation.Property; + + import demoapp.dom._infra.asciidocdesc.HasAsciiDocDescription; + import lombok.Getter; + import lombok.Setter; + + //tag::class[] + @XmlRootElement(name = "root") + @XmlType + @XmlAccessorType(XmlAccessType.FIELD) + @Named("demo.DomainObjectLayoutPagedVm") + @DomainObject( + nature=Nature.VIEW_MODEL) + public class DomainObjectLayoutPagedVm implements HasAsciiDocDescription { + + @ObjectSupport public String title() { + return "DomainObjectLayout#paged"; + } + + //TODO + @Property(optionality = Optionality.OPTIONAL) + @XmlElement(required = false) + @Getter @Setter + private String dummy; + + } + //end::class[] diff --cc examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/plural/DomainObjectLayoutPluralVm.java index 0000000000,11f6239099..68c3b32223 mode 000000,100644..100644 --- a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/plural/DomainObjectLayoutPluralVm.java +++ b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/plural/DomainObjectLayoutPluralVm.java @@@ -1,0 -1,58 +1,58 @@@ + /* + * 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 demoapp.dom.domain.objects.DomainObjectLayout.plural; + -import javax.inject.Named; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; ++import jakarta.inject.Named; ++import jakarta.xml.bind.annotation.XmlAccessType; ++import jakarta.xml.bind.annotation.XmlAccessorType; ++import jakarta.xml.bind.annotation.XmlElement; ++import jakarta.xml.bind.annotation.XmlRootElement; ++import jakarta.xml.bind.annotation.XmlType; + + import org.apache.causeway.applib.annotation.DomainObject; + import org.apache.causeway.applib.annotation.Nature; + import org.apache.causeway.applib.annotation.ObjectSupport; + import org.apache.causeway.applib.annotation.Optionality; + import org.apache.causeway.applib.annotation.Property; + + import demoapp.dom._infra.asciidocdesc.HasAsciiDocDescription; + import lombok.Getter; + import lombok.Setter; + + //tag::class[] + @XmlRootElement(name = "root") + @XmlType + @XmlAccessorType(XmlAccessType.FIELD) + @Named("demo.DomainObjectLayoutPluralVm") + @DomainObject( + nature=Nature.VIEW_MODEL) + public class DomainObjectLayoutPluralVm implements HasAsciiDocDescription { + + @ObjectSupport public String title() { + return "DomainObjectLayout#plural"; + } + + //TODO + @Property(optionality = Optionality.OPTIONAL) + @XmlElement(required = false) + @Getter @Setter + private String dummy; + + } + //end::class[] diff --cc examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/DomainObjectLayoutXxxUiEventVm.java index 0000000000,6ca9d4a9b7..83e58f1fd4 mode 000000,100644..100644 --- a/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/DomainObjectLayoutXxxUiEventVm.java +++ b/examples/demo/domain/src/main/java/demoapp/dom/domain/objects/DomainObjectLayout/xxxUiEvent/DomainObjectLayoutXxxUiEventVm.java @@@ -1,0 -1,58 +1,58 @@@ + /* + * 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 demoapp.dom.domain.objects.DomainObjectLayout.xxxUiEvent; + -import javax.inject.Named; -import javax.xml.bind.annotation.XmlAccessType; -import javax.xml.bind.annotation.XmlAccessorType; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; ++import jakarta.inject.Named; ++import jakarta.xml.bind.annotation.XmlAccessType; ++import jakarta.xml.bind.annotation.XmlAccessorType; ++import jakarta.xml.bind.annotation.XmlElement; ++import jakarta.xml.bind.annotation.XmlRootElement; ++import jakarta.xml.bind.annotation.XmlType; + + import org.apache.causeway.applib.annotation.DomainObject; + import org.apache.causeway.applib.annotation.Nature; + import org.apache.causeway.applib.annotation.ObjectSupport; + import org.apache.causeway.applib.annotation.Optionality; + import org.apache.causeway.applib.annotation.Property; + + import demoapp.dom._infra.asciidocdesc.HasAsciiDocDescription; + import lombok.Getter; + import lombok.Setter; + + //tag::class[] + @XmlRootElement(name = "root") + @XmlType + @XmlAccessorType(XmlAccessType.FIELD) + @Named("demo.DomainObjectLayoutXxxUiEventVm") + @DomainObject( + nature=Nature.VIEW_MODEL) + public class DomainObjectLayoutXxxUiEventVm implements HasAsciiDocDescription { + + @ObjectSupport public String title() { + return "DomainObjectLayout#xxxUiEvent"; + } + + //TODO + @Property(optionality = Optionality.OPTIONAL) + @XmlElement(required = false) + @Getter @Setter + private String dummy; + + } + //end::class[]
