Advertisement
Guest User

Untitled

a guest
Apr 6th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. @Entity
  2.  
  3. private static final long serialVersionUID = 1L;
  4.  
  5. @Id
  6. @GeneratedValue(strategy=GenerationType.AUTO)
  7. @Column(name="id")
  8. private int id;
  9.  
  10. @Column(name="teamId")
  11. private int teamId;
  12.  
  13. //private String Rentabiliteit;
  14.  
  15. @Column
  16. //@Index(name="IProject_status",columnNames="Status")
  17. private String status;
  18.  
  19. @Column
  20. //@Index(name="IProject_naam",columnNames="Naam")
  21. private String naam;
  22. //public Prototype m_Prototype;
  23. //public Team m_Team;
  24.  
  25. public Project(){
  26.  
  27. CREATE TABLE IF NOT EXISTS `project` (
  28. `id` int(11) NOT NULL,
  29. `teamId` int(11) DEFAULT NULL,
  30. `status` varchar(255) DEFAULT NULL,
  31. `naam` varchar(255) DEFAULT NULL
  32. ) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=latin1;
  33.  
  34. Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:
  35. Unknown column 'project0_.team_id' in 'field list'
  36.  
  37. spring:
  38.  
  39. mvc:
  40. view:
  41. prefix: /WEB-INF/jsp/
  42. suffix: .jsp
  43.  
  44. datasource:
  45. url: jdbc:mysql://localhost:3306/oxyplast
  46. username: oxyplastuser
  47. password: oxyplastuserpw
  48.  
  49. jpa:
  50. properties:
  51. hibernate:
  52. current_session_context_class: org.springframework.orm.hibernate4.SpringSessionContext
  53. namingStrategy: org.hibernate.cfg.DefaultNamingStrategy
  54.  
  55. @column(name=""teamId"")
  56.  
  57. private int teamId;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement