Skip to content

Commit

Permalink
#138 Add javadoc for InheritMaps
Browse files Browse the repository at this point in the history
  • Loading branch information
slemesle committed Apr 17, 2017
1 parent 95b8215 commit b0fcb9c
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* Copyright 2013 Séven Le Mesle
*
* 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 fr.xebia.extras.selma.it.aggregation;

import fr.xebia.extras.selma.Mapper;
import fr.xebia.extras.selma.Maps;

/**
* This mapper interface demonstrate the use of Bean Aggregation.
*/
@Mapper
public interface AggregationMapper {



}
12 changes: 11 additions & 1 deletion selma/src/main/java/fr/xebia/extras/selma/InheritMaps.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,20 @@
import java.lang.annotation.Target;

/**
* Created by slemesle on 05/08/2016.
* The InheritMaps annotation is used on a mapping method to specify that it should inherit the complete @Maps
* configuration of another mapping method.
*
* By default the Maps annotation is inherited from the mapping method with the same type pair in and out or reverse.
* But you can specify a specific method from which you want to inherit.
*/
@Target({ElementType.METHOD})
@Inherited
public @interface InheritMaps {

/**
* This optional parameter may be used to specify the method name from which you want to inherit the Maps
* configuration.
* @return
*/
String method() default "";
}

0 comments on commit b0fcb9c

Please sign in to comment.