From 1b0e87bc189ea6317330f399854fef0f9bd7a0a9 Mon Sep 17 00:00:00 2001 From: Oliver Gierke Date: Tue, 15 Jan 2013 22:21:57 +0100 Subject: [PATCH] DATAJPA-282 - Polished JavaDoc. --- .../data/jpa/repository/query/QueryUtils.java | 3 +-- .../support/JpaMetamodelEntityInformation.java | 4 ++-- .../jpa/repository/support/PersistenceProvider.java | 4 ++-- .../jpa/support/MergingPersistenceUnitManager.java | 13 ++++--------- 4 files changed, 9 insertions(+), 15 deletions(-) diff --git a/src/main/java/org/springframework/data/jpa/repository/query/QueryUtils.java b/src/main/java/org/springframework/data/jpa/repository/query/QueryUtils.java index 983cae02b..6f0dc6037 100644 --- a/src/main/java/org/springframework/data/jpa/repository/query/QueryUtils.java +++ b/src/main/java/org/springframework/data/jpa/repository/query/QueryUtils.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2012 the original author or authors. + * Copyright 2008-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. @@ -114,7 +114,6 @@ public abstract class QueryUtils { * Adds {@literal order by} clause to the JPQL query. Uses the {@link #DEFAULT_ALIAS} to bind the sorting property to. * * @param query - * @param alias * @param sort * @return */ diff --git a/src/main/java/org/springframework/data/jpa/repository/support/JpaMetamodelEntityInformation.java b/src/main/java/org/springframework/data/jpa/repository/support/JpaMetamodelEntityInformation.java index 1f8a7d654..9861510e8 100644 --- a/src/main/java/org/springframework/data/jpa/repository/support/JpaMetamodelEntityInformation.java +++ b/src/main/java/org/springframework/data/jpa/repository/support/JpaMetamodelEntityInformation.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2012 the original author or authors. + * Copyright 2011-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. @@ -48,7 +48,7 @@ public class JpaMetamodelEntityInformation extends J * Creates a new {@link JpaMetamodelEntityInformation} for the given domain class and {@link Metamodel}. * * @param domainClass must not be {@literal null}. - * @param metamodel must not be {@@iteral null}. + * @param metamodel must not be {@literal null}. */ public JpaMetamodelEntityInformation(Class domainClass, Metamodel metamodel) { diff --git a/src/main/java/org/springframework/data/jpa/repository/support/PersistenceProvider.java b/src/main/java/org/springframework/data/jpa/repository/support/PersistenceProvider.java index a473dc83a..89a559699 100644 --- a/src/main/java/org/springframework/data/jpa/repository/support/PersistenceProvider.java +++ b/src/main/java/org/springframework/data/jpa/repository/support/PersistenceProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2008-2011 the original author or authors. + * Copyright 2008-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. @@ -111,7 +111,7 @@ public enum PersistenceProvider implements QueryExtractor { /** * Determines the {@link PersistenceProvider} from the given {@link EntityManager}. If no special one can be - * determined {@value #GENERIC_JPA} will be returned. + * determined {@link #GENERIC_JPA} will be returned. * * @param em must not be {@literal null}. * @return will never be {@literal null}. diff --git a/src/main/java/org/springframework/data/jpa/support/MergingPersistenceUnitManager.java b/src/main/java/org/springframework/data/jpa/support/MergingPersistenceUnitManager.java index 36ffdcfa8..48b636967 100644 --- a/src/main/java/org/springframework/data/jpa/support/MergingPersistenceUnitManager.java +++ b/src/main/java/org/springframework/data/jpa/support/MergingPersistenceUnitManager.java @@ -1,5 +1,5 @@ /* - * Copyright 2011-2012 the original author or authors. + * Copyright 2011-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. @@ -30,7 +30,7 @@ import org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo; * {@code persistence.xml} files into one. This is necessary to allow the declaration of entities in seperate modules. * * @author Oliver Gierke - * @see http://jira.springframework.org/browse/SPR-2598 + * @link http://jira.springframework.org/browse/SPR-2598 */ public class MergingPersistenceUnitManager extends DefaultPersistenceUnitManager { @@ -38,12 +38,7 @@ public class MergingPersistenceUnitManager extends DefaultPersistenceUnitManager /* * (non-Javadoc) - * - * @see - * org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager - * # - * postProcessPersistenceUnitInfo(org.springframework.orm.jpa.persistenceunit - * .MutablePersistenceUnitInfo) + * @see org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager#postProcessPersistenceUnitInfo(org.springframework.orm.jpa.persistenceunit.MutablePersistenceUnitInfo) */ @Override protected void postProcessPersistenceUnitInfo(MutablePersistenceUnitInfo pui) { @@ -58,7 +53,7 @@ public class MergingPersistenceUnitManager extends DefaultPersistenceUnitManager } } - /* + /* * (non-Javadoc) * @see org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager#isPersistenceUnitOverrideAllowed() */