title: Java Hibernate creates db table with Varchar(255), how to increase to Varchar(1000)?
body: <p>I want to increase the 255 to 1000 when the table is automatically created by Java Hibernate, but how to do this? </p>
  
  <p>Part of the code that might need changes for it:</p>
  
  <pre><code>@Entity
  public class Work implements Serializable {
  
      @Id
      @GeneratedValue
  
      private long workNumber;
      private int fromYear;
      private int tillYear;
      private String name;
      private String profession;
      private String description;
  
      @ManyToOne
      private User user;
  
      public Work() {
      }
  
      public Work(long workNumber, int fromYear, int tillYear, String name, String profession, String description) {
          this.setWorkNumber(workNumber);
          this.setFromYear(fromYear);
          this.setTillYear(tillYear);
          this.setName(name);
          this.setProfession(profession);
          this.setDescription(description);
      }
  </code></pre>