Peter.java :  » Log » magicdroid » org » magicdroid » test » server » Android Open Source

Android Open Source » Log » magicdroid 
magicdroid » org » magicdroid » test » server » Peter.java
package org.magicdroid.test.server;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import org.magicdroid.features.EntityFeature;
import org.magicdroid.features.WorkingCopy;
import org.magicdroid.test.server.Peter.WC;


@WorkingCopy.AssociateType(WC.class)
public interface Peter extends EntityFeature<WC>{

  @Persistent
  String getName();
  
  @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  Long getServerId();

  
  interface WC extends Peter, WorkingCopy<WC> {
    void setName(String name);
    void setServerId(Long id);
    
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.