package com.venky.swf.plugins.templates.db.model.alerts;

import com.venky.swf.db.annotations.column.COLUMN_SIZE;
import com.venky.swf.db.annotations.column.IS_NULLABLE;
import com.venky.swf.db.annotations.column.UNIQUE_KEY;
import com.venky.swf.db.annotations.column.pm.PARTICIPANT;
import com.venky.swf.db.annotations.column.ui.HIDDEN;
import com.venky.swf.db.annotations.model.EXPORTABLE;
import com.venky.swf.db.model.Model;
import com.venky.swf.db.model.User;

import java.sql.Timestamp;
@EXPORTABLE(false)

public interface Alert  extends Model  {
    @UNIQUE_KEY
    public long getId();

    @PARTICIPANT
    @IS_NULLABLE(false)
    public Long getUserId();
    public void setUserId(Long userId);
    public User getUser();

    public String getSubject();
    public void setSubject(String subject);

    @COLUMN_SIZE(512)
    public String getMessage();
    public void setMessage(String message);


    public Timestamp getAlertedAt();
    public void setAlertedAt(Timestamp timestamp);

    @HIDDEN
    public String getTemplate();
    public void setTemplate(String template);


}

@@ -218,16 +218,75 @@
 UE_KEY;%0A
+import com.venky.swf.db.annotations.column.indexing.Index;%0A
 import c
@@ -689,16 +689,27 @@
 (false)%0A
+    @Index%0A
     publ
@@ -725,24 +725,24 @@
 etUserId();%0A
-
     public v
@@ -793,24 +793,35 @@
 getUser();%0A%0A
+    @Index%0A
     public S
@@ -881,24 +881,24 @@
  subject);%0A%0A
-
     @COLUMN_
@@ -907,16 +907,27 @@
 ZE(512)%0A
+    @Index%0A
     publ

Index Alert