All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.avaje.ebean.annotation.EmbeddedColumns Maven / Gradle / Ivy

There is a newer version: 8.1.1
Show newest version
package com.avaje.ebean.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Specify property name to db column mapping for Embedded beans.
 * 

* This is designed to be easier to use than the AttributeOverride annotation in * standard JPA. *

*/ @Target({ ElementType.FIELD, ElementType.METHOD }) @Retention(RetentionPolicy.RUNTIME) public @interface EmbeddedColumns { /** * A list of property names mapped to DB columns. *

* For example currency=IN_CURR, amount=IN_AMOUNT *

*

* Where currency and amount are properties and IN_CURR and IN_AMOUNT are the * respective DB columns these properties will be mapped to. *

*/ String columns() default ""; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy