#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )

package ${package}.model;

import org.compass.annotations.Searchable;
import org.compass.annotations.SearchableId;
import org.compass.annotations.SearchableProperty;
import org.hibernate.validator.NotNull;

import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
@Searchable
public class MyEntity {

    @Id
    @SearchableId
    private Long id;

    @NotNull
    @SearchableProperty
    private String myProp;

    public Long getId() {
        return id;
    }

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

    public String getMyProp() {
        return myProp;
    }

    public void setMyProp(String myProp) {
        this.myProp = myProp;
    }
}

@@ -111,188 +111,8 @@
 l;%0A%0A
-import org.compass.annotations.Searchable;%0Aimport org.compass.annotations.SearchableId;%0Aimport org.compass.annotations.SearchableProperty;%0Aimport org.hibernate.validator.NotNull;%0A%0A
 impo
@@ -140,16 +140,16 @@
 Entity;%0A
+
 import j
@@ -182,20 +182,8 @@
 ity%0A
-@Searchable%0A
 publ
@@ -215,26 +215,8 @@
 @Id%0A
-    @SearchableId%0A
     
@@ -237,44 +237,8 @@
 d;%0A%0A
-    @NotNull%0A    @SearchableProperty
 %0A   

Remove Compass and Hibernate dependencies