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

com.hannesdorfmann.sqlbrite.objectmapper.annotation.Column Maven / Gradle / Ivy

There is a newer version: 0.6.1
Show newest version
package com.hannesdorfmann.sqlbrite.objectmapper.annotation;

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

/**
 * Annotate fields with this annotation to mark them as mappable from cursor to
 *
 * @author Hannes Dorfmann
 */
@Retention(RetentionPolicy.SOURCE) @Documented @Target({ ElementType.FIELD, ElementType.METHOD })
public @interface Column {

  /**
   * Set the column name (without table prefix).
   * See http://androidxref.com/5.1.0_r1/xref/frameworks/base/core/java/android/database/AbstractCursor.java
   * line 275
   *
   * @return The column name
   */
  String value();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy