1 package org.jcr_blog.jcrmapping; 2 3 import java.lang.annotation.ElementType; 4 import java.lang.annotation.Retention; 5 import java.lang.annotation.RetentionPolicy; 6 import java.lang.annotation.Target; 7 8 /** 9 * The name of the node will injected and 10 * the content of the field will be used as node name. 11 * @author Sebastian Prehn <sebastian.prehn@planetswebdesign.de> 12 */ 13 @Target({ElementType.FIELD, ElementType.TYPE}) 14 @Retention(RetentionPolicy.RUNTIME) 15 public @interface NodeConfiguration { 16 /** 17 * Optional namespace of name. 18 * 19 */ 20 public String namespace() default ""; 21 /** 22 * Optional name of the property. If empty the name of the field will be used. 23 * 24 */ 25 public String name() default ""; 26 27 }