com.avaje.ebean.annotation
Annotation Type EmbeddedColumns


@Target(value={FIELD,METHOD})
@Retention(value=RUNTIME)
public @interface EmbeddedColumns

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.


Optional Element Summary
 String columns
          A list of property names mapped to DB columns.
 

columns

public abstract String columns
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.

Default:
""


Copyright © 2010. All Rights Reserved.