title: "org.hibernate.ObjectNotFoundException: No row with the given identifier exists" but it does exists
body: <p>I'm using hibernate for my web service.</p>
  
  <p>I'm able to list all the records, but unable to get just one.</p>
  
  <p>The table contains:</p>
  
  <pre><code>ID (VARCHAR)                      VALUE(BIT)
  celiac                               1
  rate                                 1
  suggestions                          0
  </code></pre>
  
  <p>The error shown is:</p>
  
  <pre><code>org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.pfc.restaurante.models.Device#id="xxxxxx"]
      org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:894)
      org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  </code></pre>
  
  <p>And the main code:</p>
  
  <pre><code>    @JsonAutoDetect
      @Entity
      @Table(name = "SETTINGS")
      public class Settings implements Serializable{
          @Id
          @Column(name="ID")
          private String id;
  
          @Column(name="VALUE", nullable=false)
          private boolean value;
      (...)
      }
      //////////////////7
     @Controller
     @RequestMapping("/settingsService")
     public class SettingsServiceController {
  
      @Autowired
      SettingsService settingsService;
  
          @RequestMapping(value = "/{id}", method = RequestMethod.GET)
      public @ResponseBody Settings find(@PathVariable("id") String id){
          return settingsService.find(id);
      }
            (...)
  }
  </code></pre>
  
  <p>I've read around that it could be because DB incongruence with my entity (some nullable = true when it shouldn't), but I've checked it already and there is no such a thing.</p>
  
  <p>Could someone lend me a hand?</p>
  
  <p>Thanks in advance!</p>