package org.jboss.cache.search.test;

import org.hibernate.search.annotations.ProvidedId;
import org.hibernate.search.annotations.Indexed;
import org.hibernate.search.annotations.DocumentId;
import org.hibernate.search.annotations.Field;

/**
 * @author Navin Surtani  - navin@surtani.org
 */
@ProvidedId
@Indexed
public class BrokenDocumentId
{
   @DocumentId
   @Field
   String name;

   @Field
   int age;

   public void setBoth(String name, int age)
   {
      this.name = name;
      this.age = age;
   }
}
