Codota Logo
org.batoo.jpa.annotations
Code IndexAdd Codota to your IDE (free)

How to use org.batoo.jpa.annotations

Best Java code snippets using org.batoo.jpa.annotations (Showing top 19 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: BatooOrg/BatooJPA

/**
 * @param locator
 *            the locator
 * @param columnTransformer
 *            the column transformer
 * 
 * @since 2.0.0
 */
public ColumnTransformerMetadataImpl(AbstractLocator locator, ColumnTransformer columnTransformer) {
  super();
  this.locator = locator;
  this.read = columnTransformer.read();
  this.write = columnTransformer.write();
}
origin: BatooOrg/BatooJPA

/**
 * @param locator
 *            the java locator
 * @param annotation
 *            the annotation
 * 
 * @since 2.0.0
 */
public IndexMetadataImpl(AbstractLocator locator, Index annotation) {
  super();
  this.locator = locator;
  this.name = annotation.name();
  this.columnNames = annotation.columns();
  this.table = annotation.table();
}
origin: org.batoo.jpa/parser

/**
 * @param locator
 *            the java locator
 * @param annotation
 *            the annotation
 * @param name
 *            field column name
 * 
 * @since 2.0.0
 */
public IndexMetadataImpl(AbstractLocator locator, Index annotation, String name) {
  super();
  this.locator = locator;
  this.name = annotation.name();
  this.columnNames = new String[] { name };
  this.table = annotation.table();
}
origin: org.batoo.jpa/parser

this.maxFetchDepth = fetchStrategy.maxDepth() > 0 ? fetchStrategy.maxDepth() : Integer.MAX_VALUE;
this.fetchStrategy = fetchStrategy.strategy();
origin: com.querydsl/querydsl-jpa

/**
 * The Class Department.
 */
@Entity
@Table(name = "department_")
public class Department {
  @ManyToOne
  Company company;

  @OneToMany
  @Index(name = "_index")
  List<Employee> employees;

  @Id
  int id;

  String name;
}

origin: BatooOrg/BatooJPA

/**
 * Handles the index definitions of the entity.
 * 
 * @param metadata
 *            the metadata
 * @param parsed
 *            the set of annotations parsed
 * 
 * @since 2.0.0
 */
private void handleIndexes(EntityMetadata metadata, Set<Class<? extends Annotation>> parsed) {
  final Indexes indexes = this.getClazz().getAnnotation(Indexes.class);
  if ((indexes != null) && (indexes.value().length > 0)) {
    parsed.add(Indexes.class);
    for (final Index index : indexes.value()) {
      this.indexes.add(new IndexMetadataImpl(this.getLocator(), index));
    }
  }
  else {
    final Index index = this.getClazz().getAnnotation(Index.class);
    parsed.add(Index.class);
    if (index != null) {
      this.indexes.add(new IndexMetadataImpl(this.getLocator(), index));
    }
  }
}
origin: org.batoo.jpa/batoo-jpa

/**
 * @param locator
 *            the java locator
 * @param annotation
 *            the annotation
 * 
 * @since 2.0.0
 */
public IndexMetadataImpl(AbstractLocator locator, Index annotation) {
  super();
  this.locator = locator;
  this.name = annotation.name();
  this.columnNames = annotation.columns();
  this.table = annotation.table();
}
origin: org.batoo.jpa/parser

/**
 * @param locator
 *            the locator
 * @param columnTransformer
 *            the column transformer
 * 
 * @since 2.0.0
 */
public ColumnTransformerMetadataImpl(AbstractLocator locator, ColumnTransformer columnTransformer) {
  super();
  this.locator = locator;
  this.read = columnTransformer.read();
  this.write = columnTransformer.write();
}
origin: BatooOrg/BatooJPA

/**
 * @param locator
 *            the java locator
 * @param annotation
 *            the annotation
 * @param name
 *            field column name
 * 
 * @since 2.0.0
 */
public IndexMetadataImpl(AbstractLocator locator, Index annotation, String name) {
  super();
  this.locator = locator;
  this.name = annotation.name();
  this.columnNames = new String[] { name };
  this.table = annotation.table();
}
origin: BatooOrg/BatooJPA

this.maxFetchDepth = fetchStrategy.maxDepth() > 0 ? fetchStrategy.maxDepth() : Integer.MAX_VALUE;
this.fetchStrategy = fetchStrategy.strategy();
origin: com.querydsl/querydsl-jpa

@Index(name = "_index")
public List<Department> departments;
origin: org.batoo.jpa/parser

/**
 * Handles the index definitions of the entity.
 * 
 * @param metadata
 *            the metadata
 * @param parsed
 *            the set of annotations parsed
 * 
 * @since 2.0.0
 */
private void handleIndexes(EntityMetadata metadata, Set<Class<? extends Annotation>> parsed) {
  final Indexes indexes = this.getClazz().getAnnotation(Indexes.class);
  if ((indexes != null) && (indexes.value().length > 0)) {
    parsed.add(Indexes.class);
    for (final Index index : indexes.value()) {
      this.indexes.add(new IndexMetadataImpl(this.getLocator(), index));
    }
  }
  else {
    final Index index = this.getClazz().getAnnotation(Index.class);
    parsed.add(Index.class);
    if (index != null) {
      this.indexes.add(new IndexMetadataImpl(this.getLocator(), index));
    }
  }
}
origin: org.batoo.jpa/parser

/**
 * @param locator
 *            the java locator
 * @param annotation
 *            the annotation
 * 
 * @since 2.0.0
 */
public IndexMetadataImpl(AbstractLocator locator, Index annotation) {
  super();
  this.locator = locator;
  this.name = annotation.name();
  this.columnNames = annotation.columns();
  this.table = annotation.table();
}
origin: org.batoo.jpa/batoo-jpa

/**
 * @param locator
 *            the locator
 * @param columnTransformer
 *            the column transformer
 * 
 * @since 2.0.0
 */
public ColumnTransformerMetadataImpl(AbstractLocator locator, ColumnTransformer columnTransformer) {
  super();
  this.locator = locator;
  this.read = columnTransformer.read();
  this.write = columnTransformer.write();
}
origin: org.batoo.jpa/batoo-jpa

/**
 * @param locator
 *            the java locator
 * @param annotation
 *            the annotation
 * @param name
 *            field column name
 * 
 * @since 2.0.0
 */
public IndexMetadataImpl(AbstractLocator locator, Index annotation, String name) {
  super();
  this.locator = locator;
  this.name = annotation.name();
  this.columnNames = new String[] { name };
  this.table = annotation.table();
}
origin: org.batoo.jpa/batoo-jpa

this.maxFetchDepth = fetchStrategy.maxDepth() > 0 ? fetchStrategy.maxDepth() : Integer.MAX_VALUE;
this.fetchStrategy = fetchStrategy.strategy();
origin: com.mysema.querydsl/querydsl-jpa

@Index(name = "_index")
public List<Department> departments;
origin: org.batoo.jpa/batoo-jpa

/**
 * Handles the index definitions of the entity.
 * 
 * @param metadata
 *            the metadata
 * @param parsed
 *            the set of annotations parsed
 * 
 * @since 2.0.0
 */
private void handleIndexes(EntityMetadata metadata, Set<Class<? extends Annotation>> parsed) {
  final Indexes indexes = this.getClazz().getAnnotation(Indexes.class);
  if ((indexes != null) && (indexes.value().length > 0)) {
    parsed.add(Indexes.class);
    for (final Index index : indexes.value()) {
      this.indexes.add(new IndexMetadataImpl(this.getLocator(), index));
    }
  }
  else {
    final Index index = this.getClazz().getAnnotation(Index.class);
    parsed.add(Index.class);
    if (index != null) {
      this.indexes.add(new IndexMetadataImpl(this.getLocator(), index));
    }
  }
}
origin: com.mysema.querydsl/querydsl-jpa

/**
 * The Class Department.
 */
@Entity
@Table(name="department_")
public class Department {
  @ManyToOne
  Company company;

  @OneToMany
  @Index(name = "_index")
  List<Employee> employees;

  @Id
  int id;
  
  String name;
}

org.batoo.jpa.annotations

Most used classes

  • Index
  • ColumnTransformer
  • FetchStrategy
  • Indexes
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now