Tabnine Logo
Id
Code IndexAdd Tabnine to your IDE (free)

How to use
Id
in
me.prettyprint.hom.annotations

Best Java code snippets using me.prettyprint.hom.annotations.Id (Showing top 2 results out of 315)

origin: hector-client/hector

private <T> void processIdCustomAnnotation(Field f, me.prettyprint.hom.annotations.Id anno,
  CFMappingDef<T> cfMapDef, Map<String, PropertyDescriptor> pdMap)
  throws InstantiationException, IllegalAccessException {
 // TODO lookup JPA 2 spec for class-level ids
 PropertyMappingDefinition md = new PropertyMappingDefinition(pdMap.get(f.getName()), null,
   anno.converter());
 if (null == md.getPropDesc() || null == md.getPropDesc().getReadMethod()
   || null == md.getPropDesc().getWriteMethod()) {
  throw new HectorObjectMapperException("@" + Id.class.getSimpleName()
    + " is defined on property, " + f.getName() + ", but its missing proper setter/getter");
 }
 cfMapDef.getKeyDef().addIdPropertyMap(md);
}
origin: hector-client/hector

@Entity
@Table(name = "AnonumousColumnFamily")
@AnonymousPropertyHandling(type = Drawer.class, serializer = ObjectSerializer.class, adder = "addAnonymousProp", getter = "getAnonymousProps")
public class AnonymousWithCustomType {
 private Map<String, Drawer> anonymousProps = new HashMap<String, Drawer>();

 @Id
 private long id;

 public void addAnonymousProp(String name, Drawer value) {
  anonymousProps.put(name, value);
 }

 public Collection<Entry<String, Drawer>> getAnonymousProps() {
  return anonymousProps.entrySet();
 }

 public long getId() {
  return id;
 }

 public void setId(long id) {
  this.id = id;
 }
}

me.prettyprint.hom.annotationsId

Most used methods

  • <init>
  • converter

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onCreateOptionsMenu (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now