package models;

import java.util.*;

import javax.persistence.*;

import play.data.*;
import play.data.validation.Constraints.*;
import play.db.ebean.*;

@Entity
public class PersonTag extends Model {
    @Id
    public long tag_id;

    @Id
    public long person_id;
    //@Id
    //@ManyToOne()
    //@JoinColumn(name="tag_id")
    //public Tag tag;
    //
    //@Id
    //@ManyToOne()
    //@JoinColumn(name="person_id")
    //public Person person;

    public static Finder<Integer, PersonTag> find = new Finder(
        Integer.class, PersonTag.class
    );

    public static PersonTag create(Tag t, Person p) {
        PersonTag result = new PersonTag();
        result.tag_id = t.id;
        result.person_id = p.person_id;

        result.save();
        return result;
    }
}

@@ -283,201 +283,8 @@
 id;%0D
-%0A    //@Id%0D%0A    //@ManyToOne()%0D%0A    //@JoinColumn(name=%22tag_id%22)%0D%0A    //public Tag tag;%0D%0A    //%0D%0A    //@Id%0D%0A    //@ManyToOne()%0D%0A    //@JoinColumn(name=%22person_id%22)%0D%0A    //public Person person;%0D
 %0A%0D%0A 

Remove unneeded comment