:Notice: 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.


The framework has built-in support for the (primitive) `#{showcase-simple-type}` data type.
These can be used either in entities or view models.

== How this demo works

On the left hand side is a collection of entities that uses the `#{showcase-simple-type}` datatype.
There is also an action that opens a view model; this view model also uses the `#{showcase-simple-type}` datatype.

Navigate into the entity or view model to see the datatype used as a property, an action parameter and as a return type of collections, along with code samples.

=== Implementation Notes

The entity and view model types both implement some common interfaces:

* The `#{showcase-name}Holder` interface is used to contribute a number of mixins to both types:
+
[source,java]
----
include::holder/#{showcase-name}Holder.java[tags=class]
----

* The `#{showcase-name}Holder2` interface is used to demonstrate support for label positions using `@PropertyLayout(labelPosition=...)`.


