// Path: src/main/java/com/github/jasminb/jsonapi/LongIdHandler.java
// public class LongIdHandler implements ResourceIdHandler {
// 	
// 	/**
// 	 * Creates new LongIdHandler.
// 	 *
// 	 */
// 	public LongIdHandler() {
// 		// Default constructor
// 	}
// 	
// 	@Override
// 	public String asString(Object identifier) {
// 		if (identifier != null) {
// 			return String.valueOf(identifier);
// 		}
// 		return null;
// 	}
// 	
// 	@Override
// 	public Long fromString(String source) {
// 		if (source != null) {
// 			return Long.valueOf(source);
// 		}
// 		return null;
// 	}
// }


import com.github.jasminb.jsonapi.LongIdHandler;
import com.github.jasminb.jsonapi.annotations.Id;
import com.github.jasminb.jsonapi.annotations.Relationship;
import com.github.jasminb.jsonapi.annotations.Type;
package com.github.jasminb.jsonapi.models;


/**
 * Model class used to test {@link Long} as resource identifier.
 *
 * @author jbegic
 */
@Type("long-id-type")
public class LongIdResource {
	
// Path: src/main/java/com/github/jasminb/jsonapi/LongIdHandler.java
// public class LongIdHandler implements ResourceIdHandler {
// 	
// 	/**
// 	 * Creates new LongIdHandler.
// 	 *
// 	 */
// 	public LongIdHandler() {
// 		// Default constructor
// 	}
// 	
// 	@Override
// 	public String asString(Object identifier) {
// 		if (identifier != null) {
// 			return String.valueOf(identifier);
// 		}
// 		return null;
// 	}
// 	
// 	@Override
// 	public Long fromString(String source) {
// 		if (source != null) {
// 			return Long.valueOf(source);
// 		}
// 		return null;
// 	}
// }


// Path: src/test/java/com/github/jasminb/jsonapi/models/LongIdResource.java
import com.github.jasminb.jsonapi.LongIdHandler;
import com.github.jasminb.jsonapi.annotations.Id;
import com.github.jasminb.jsonapi.annotations.Relationship;
import com.github.jasminb.jsonapi.annotations.Type;

package com.github.jasminb.jsonapi.models;


/**
 * Model class used to test {@link Long} as resource identifier.
 *
 * @author jbegic
 */
@Type("long-id-type")
public class LongIdResource {
	
	@Id(LongIdHandler.class)