Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Organization temp = (Organization) session.createQuery("FROM Organization o WHERE o.pid = "+pid).setMaxResults(1).uniqueResult();
- java.lang.IllegalArgumentException: org.hibernate.QueryException: in expected: o [FROM Organization o WHERE o.pid = 5]
- Organization temp = (Organization) session.createQuery("FROM at.nettania.dev.ntacadmin.core.organization.Organization o WHERE o.pid = "+pid).setMaxResults(1).uniqueResult();
- <property name="connection.url">jdbc:mysql://localhost/testing</property>
- <property name="connection.username">root</property>
- <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
- <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
- <property name="connection.password">****</property>
- <property name="transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property>
- <property name="hibernate.jdbc.batch_size">0</property>
- <property name="hibernate.query.factory_class">org.hibernate.hql.internal.classic.ClassicQueryTranslatorFactory</property>
- <!-- thread is the short name for org.hibernate.context.ThreadLocalSessionContext and let Hibernate bind the session automatically to the thread -->
- <property name="current_session_context_class">thread</property>
- <!-- this will show us all sql statements -->
- <property name="hibernate.show_sql">false</property>
- <!-- automatic creation of tables -->
- <property name="hibernate.hbm2ddl.auto">update</property>
- <property name="hibernate.temp.use_jdbc_metadata_defaults">false</property>
- <!-- JDBC Batch Size -->
- <property name="hibernate.jdbc.batch_size">20</property>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement