findById(Integer id);
/**
* Save a {@link Pet} to the data store, either inserting or updating it.
+ *
* @param pet the {@link Pet} to save
*/
Pet save(Pet pet);
diff --git a/src/main/java/org/springframework/samples/petclinic/backend/owner/PetType.java b/src/main/java/org/springframework/samples/petclinic/backend/owner/PetType.java
new file mode 100644
index 0000000..5fc2aaf
--- /dev/null
+++ b/src/main/java/org/springframework/samples/petclinic/backend/owner/PetType.java
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2012-2019 the original author or authors.
+ *
+ * Licensed 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
+ *
+ * https://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.springframework.samples.petclinic.backend.owner;
+
+import jakarta.persistence.Entity;
+import jakarta.persistence.Table;
+import org.springframework.samples.petclinic.backend.model.NamedEntity;
+
+/**
+ * @author Juergen Hoeller Can be Cat, Dog, Hamster...
+ */
+@Entity
+@Table(name = "types")
+public class PetType extends NamedEntity {
+
+}
diff --git a/src/main/java/org/springframework/samples/petclinic/system/CacheConfiguration.java b/src/main/java/org/springframework/samples/petclinic/backend/system/CacheConfiguration.java
similarity index 55%
rename from src/main/java/org/springframework/samples/petclinic/system/CacheConfiguration.java
rename to src/main/java/org/springframework/samples/petclinic/backend/system/CacheConfiguration.java
index 0a96582..02afccb 100755
--- a/src/main/java/org/springframework/samples/petclinic/system/CacheConfiguration.java
+++ b/src/main/java/org/springframework/samples/petclinic/backend/system/CacheConfiguration.java
@@ -1,20 +1,18 @@
/*
* Copyright 2012-2019 the original author or authors.
*
- * Licensed 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
+ * Licensed 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
*
- * https://www.apache.org/licenses/LICENSE-2.0
+ * https://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.
+ * 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.springframework.samples.petclinic.system;
+package org.springframework.samples.petclinic.backend.system;
import javax.cache.configuration.MutableConfiguration;
@@ -24,9 +22,8 @@
import org.springframework.context.annotation.Configuration;
/**
- * Cache configuration intended for caches providing the JCache API. This configuration
- * creates the used cache for the application and enables statistics that become
- * accessible via JMX.
+ * Cache configuration intended for caches providing the JCache API. This configuration creates the
+ * used cache for the application and enables statistics that become accessible via JMX.
*/
@Configuration(proxyBeanMethods = false)
@EnableCaching
@@ -40,13 +37,13 @@ public JCacheManagerCustomizer petclinicCacheConfigurationCustomizer() {
}
/**
- * Create a simple configuration that enable statistics via the JCache programmatic
- * configuration API.
+ * Create a simple configuration that enable statistics via the JCache programmatic configuration
+ * API.
*
- * Within the configuration object that is provided by the JCache API standard, there
- * is only a very limited set of configuration options. The really relevant
- * configuration options (like the size limit) must be set via a configuration
- * mechanism that is provided by the selected JCache implementation.
+ * Within the configuration object that is provided by the JCache API standard, there is only a
+ * very limited set of configuration options. The really relevant configuration options (like the
+ * size limit) must be set via a configuration mechanism that is provided by the selected JCache
+ * implementation.
*/
private javax.cache.configuration.Configuration