I have a problem with a entity class. When I run my app with hibernate.hbm2ddl.auto = create, then it create all the other entity tables but not this on. Why is that? And when I create the table by myself and after that try to insert something into it, then I get this error: http://pastebin.com/m4gjxqNC
Here's my entity class: User entity: http://pastebin.com/YXvzFSgt Comment entity: http://pastebin.com/RpZEUPxN
And here's the UserDAO class http://pastebin.com/LrTCg0GC