diff --git a/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaOwnerRepositoryImpl.java b/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaOwnerRepositoryImpl.java index ab679d280633033fe256a55c426250d4825b591d..898998056e6292a1b5f10356133e7be49f8422d0 100644 --- a/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaOwnerRepositoryImpl.java +++ b/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaOwnerRepositoryImpl.java @@ -1,3 +1,18 @@ +/* + * Copyright 2002-2013 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 + * + * 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.springframework.samples.petclinic.repository.jpa; import java.util.Collection; @@ -9,12 +24,9 @@ import javax.persistence.Query; import org.springframework.samples.petclinic.model.Owner; import org.springframework.samples.petclinic.repository.OwnerRepository; import org.springframework.stereotype.Repository; -import org.springframework.transaction.annotation.Transactional; /** - * JPA implementation of the ClinicService interface using EntityManager. - * - * <p>The mappings are defined in "orm.xml" located in the META-INF directory. + * JPA implementation of the {@link OwnerRepository} interface. * * @author Mike Keith * @author Rod Johnson @@ -23,7 +35,6 @@ import org.springframework.transaction.annotation.Transactional; * @since 22.4.2006 */ @Repository -@Transactional public class JpaOwnerRepositoryImpl implements OwnerRepository { @PersistenceContext diff --git a/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaPetRepositoryImpl.java b/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaPetRepositoryImpl.java index 84e9705d75d460730b2a3abf95db4b8595c43bed..c83fd6966e50b12efa1a7e82908659b7b8bf339b 100644 --- a/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaPetRepositoryImpl.java +++ b/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaPetRepositoryImpl.java @@ -1,3 +1,18 @@ +/* + * Copyright 2002-2013 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 + * + * 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.springframework.samples.petclinic.repository.jpa; import java.util.List; @@ -11,9 +26,7 @@ import org.springframework.samples.petclinic.repository.PetRepository; import org.springframework.stereotype.Repository; /** - * JPA implementation of the ClinicService interface using EntityManager. - * - * <p>The mappings are defined in "orm.xml" located in the META-INF directory. + * JPA implementation of the {@link PetRepository} interface. * * @author Mike Keith * @author Rod Johnson diff --git a/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaVetRepositoryImpl.java b/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaVetRepositoryImpl.java index 82bfb7e9863dde244753c7efca8ec54c0d289f98..b32abc7447aaf2394987386c00fe471f170025f1 100644 --- a/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaVetRepositoryImpl.java +++ b/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaVetRepositoryImpl.java @@ -1,3 +1,18 @@ +/* + * Copyright 2002-2013 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 + * + * 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.springframework.samples.petclinic.repository.jpa; import java.util.Collection; @@ -11,10 +26,8 @@ import org.springframework.samples.petclinic.repository.VetRepository; import org.springframework.stereotype.Repository; /** - * JPA implementation of the ClinicService interface using EntityManager. - * - * <p>The mappings are defined in "orm.xml" located in the META-INF directory. - * +* JPA implementation of the {@link VetRepository} interface. + * * @author Mike Keith * @author Rod Johnson * @author Sam Brannen diff --git a/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaVisitRepositoryImpl.java b/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaVisitRepositoryImpl.java index 0c6630ce57e5b5f3ed8225df3a9611c2898eb756..ff43486a53c71cb627a0d914fae58dd8995bb40b 100644 --- a/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaVisitRepositoryImpl.java +++ b/src/main/java/org/springframework/samples/petclinic/repository/jpa/JpaVisitRepositoryImpl.java @@ -1,7 +1,20 @@ +/* + * Copyright 2002-2013 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 + * + * 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.springframework.samples.petclinic.repository.jpa; - - import java.util.List; import javax.persistence.EntityManager; diff --git a/src/main/java/org/springframework/samples/petclinic/repository/springdatajpa/JpaOwnerRepositoryImpl.java b/src/main/java/org/springframework/samples/petclinic/repository/springdatajpa/JpaOwnerRepositoryImpl.java index eb67277b8c1dfdf0be883c87cc0041affce95707..6f28d798cc8d21b3249f30f6fc493ac00069c31d 100644 --- a/src/main/java/org/springframework/samples/petclinic/repository/springdatajpa/JpaOwnerRepositoryImpl.java +++ b/src/main/java/org/springframework/samples/petclinic/repository/springdatajpa/JpaOwnerRepositoryImpl.java @@ -24,7 +24,6 @@ import javax.persistence.Query; import org.springframework.samples.petclinic.model.Owner; import org.springframework.samples.petclinic.repository.OwnerRepository; import org.springframework.stereotype.Repository; -import org.springframework.transaction.annotation.Transactional; /** * Using native JPA instead of Spring Data JPA here because of this query: @@ -34,7 +33,6 @@ import org.springframework.transaction.annotation.Transactional; * @author Michael Isvy */ @Repository -@Transactional public class JpaOwnerRepositoryImpl implements OwnerRepository { @PersistenceContext