title: how to make push notification in spring mvc and hibernate
body: <p>i have small web application in spring mvc and hibernate. </p>
  
  <p>in this web service via push notification to database into data is automatically push into android device.</p>
  
  <p>how to do push notification?</p>
  
  <p>restful controller</p>
  
  <pre><code>@Controller
  @RequestMapping("/json")
  public class JsonData 
  {
  
      @Autowired
      private AdminService adminService;
  
      @GET
      @RequestMapping(value="/jsonEnglishWord")
      @Produces(MediaType.APPLICATION_JSON)
      public @ResponseBody List&lt;English_Word&gt; getAllWord() {
  
          return new ArrayList&lt;English_Word&gt;(adminService.getAllWord());
  
      }
  
      @GET
      @RequestMapping(value="/jsonGujaratiWord")
      @Produces(MediaType.APPLICATION_JSON)
      public @ResponseBody List&lt;Gujarati_Word&gt; getallGujarati_Words(){
  
          return new ArrayList&lt;Gujarati_Word&gt;(adminService.getAllGujaratiword());
      }
  </code></pre>
  
  <p>database model</p>
  
  <pre><code>@Entity
  @Table(name="English_Word")
  public class English_Word {
  
      @Id
      @GeneratedValue(strategy=GenerationType.AUTO)
      private int word_id;
  
      private String word_name;
  
      @Lob
      private String word_explain;
  
      @Temporal(TemporalType.DATE)
      private Date word_date;
  
      public int getWord_id() {
          return word_id;
      }
  
      public void setWord_id(int word_id) {
          this.word_id = word_id;
      }
  
      public String getWord_name() {
          return word_name;
      }
  
      public void setWord_name(String word_name) {
          this.word_name = word_name;
      }
  
      public String getWord_explain() {
          return word_explain;
      }
  
      public void setWord_explain(String word_explain) {
          this.word_explain = word_explain;
      }
  
      public Date getWord_date() {
          return word_date;
      }
  
      public void setWord_date(Date word_date) {
          this.word_date = word_date;
      }
  
  }
  </code></pre>