Skip to content
Snippets Groups Projects
Commit 790ebb5d authored by Mic's avatar Mic
Browse files

improved javadoc for jpa implementation

parent a81b3330
No related branches found
No related tags found
No related merge requests found
/*
* 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; package org.springframework.samples.petclinic.repository.jpa;
import java.util.Collection; import java.util.Collection;
...@@ -9,12 +24,9 @@ import javax.persistence.Query; ...@@ -9,12 +24,9 @@ import javax.persistence.Query;
import org.springframework.samples.petclinic.model.Owner; import org.springframework.samples.petclinic.model.Owner;
import org.springframework.samples.petclinic.repository.OwnerRepository; import org.springframework.samples.petclinic.repository.OwnerRepository;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
/** /**
* JPA implementation of the ClinicService interface using EntityManager. * JPA implementation of the {@link OwnerRepository} interface.
*
* <p>The mappings are defined in "orm.xml" located in the META-INF directory.
* *
* @author Mike Keith * @author Mike Keith
* @author Rod Johnson * @author Rod Johnson
...@@ -23,7 +35,6 @@ import org.springframework.transaction.annotation.Transactional; ...@@ -23,7 +35,6 @@ import org.springframework.transaction.annotation.Transactional;
* @since 22.4.2006 * @since 22.4.2006
*/ */
@Repository @Repository
@Transactional
public class JpaOwnerRepositoryImpl implements OwnerRepository { public class JpaOwnerRepositoryImpl implements OwnerRepository {
@PersistenceContext @PersistenceContext
......
/*
* 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; package org.springframework.samples.petclinic.repository.jpa;
import java.util.List; import java.util.List;
...@@ -11,9 +26,7 @@ import org.springframework.samples.petclinic.repository.PetRepository; ...@@ -11,9 +26,7 @@ import org.springframework.samples.petclinic.repository.PetRepository;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
/** /**
* JPA implementation of the ClinicService interface using EntityManager. * JPA implementation of the {@link PetRepository} interface.
*
* <p>The mappings are defined in "orm.xml" located in the META-INF directory.
* *
* @author Mike Keith * @author Mike Keith
* @author Rod Johnson * @author Rod Johnson
......
/*
* 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; package org.springframework.samples.petclinic.repository.jpa;
import java.util.Collection; import java.util.Collection;
...@@ -11,10 +26,8 @@ import org.springframework.samples.petclinic.repository.VetRepository; ...@@ -11,10 +26,8 @@ import org.springframework.samples.petclinic.repository.VetRepository;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
/** /**
* JPA implementation of the ClinicService interface using EntityManager. * JPA implementation of the {@link VetRepository} interface.
* *
* <p>The mappings are defined in "orm.xml" located in the META-INF directory.
*
* @author Mike Keith * @author Mike Keith
* @author Rod Johnson * @author Rod Johnson
* @author Sam Brannen * @author Sam Brannen
......
/*
* 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; package org.springframework.samples.petclinic.repository.jpa;
import java.util.List; import java.util.List;
import javax.persistence.EntityManager; import javax.persistence.EntityManager;
......
...@@ -24,7 +24,6 @@ import javax.persistence.Query; ...@@ -24,7 +24,6 @@ import javax.persistence.Query;
import org.springframework.samples.petclinic.model.Owner; import org.springframework.samples.petclinic.model.Owner;
import org.springframework.samples.petclinic.repository.OwnerRepository; import org.springframework.samples.petclinic.repository.OwnerRepository;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
/** /**
* Using native JPA instead of Spring Data JPA here because of this query: * Using native JPA instead of Spring Data JPA here because of this query:
...@@ -34,7 +33,6 @@ import org.springframework.transaction.annotation.Transactional; ...@@ -34,7 +33,6 @@ import org.springframework.transaction.annotation.Transactional;
* @author Michael Isvy * @author Michael Isvy
*/ */
@Repository @Repository
@Transactional
public class JpaOwnerRepositoryImpl implements OwnerRepository { public class JpaOwnerRepositoryImpl implements OwnerRepository {
@PersistenceContext @PersistenceContext
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment