sql « EntityManager « JPA Q&A





1. Execute a Create Table Query though the JPA EntityManager    stackoverflow.com

i need to create a new Table in a Database i access through a JPA EntityManager. Do JPA NativeQueries support Queries other than "Select" or "Update"? Or is there another state ...

3. Entity manager: Hibernate generating wrong SQL (composite key of composite keys)    coderanch.com

Hello, I'm using a table that has four columns as primary key, with pairs of two columns each referencing another table via composite FK (MySQL 5.1). Both references are identifying relationships, that is they are PK as well as FK in the PlayerStats table. The design can be viewed here: http://www.kawoolutions.com/media/hibernate-wrong-sql-playerstats.jpg Here's the stack trace (root cause): com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'playerstat0_.score' ...