Posts

Showing posts with the label hibernate

Couldn't get at the OracleSpatial Connection object from the PreparedStatement

Couldn't get at the OracleSpatial Connection object from the PreparedStatement i am using hibernate spatial 4.3.2 along with hibernate 4.3.11 and my db is oracle 12c. I use hikariCP for connection pool. when I use hikacriCP I get an error that seems that cause is hibernate spatial can not access to the wrapped connection of hikari connection instance, this is my exception: problem is hibernate throws error when saving an entity that contains geometry field. Couldn't get at the OracleSpatial Connection object from the PreparedStatement when I remove hikari, everything is fine! here is my entity and xml mapping file. <hibernate-mapping> <class name="MyPoint" table="MyPoint" > <id name="id" type="long" > <column name="ID" /> <generator class="sequence" > <param name="sequence">SEQ_MyPoint</param> </...

What is SELECT generator in Hibernate?

What is SELECT generator in Hibernate? I am learning Hibernate. Today I read SELECT generator in hibernate. I searched about this generator on Google but can't find anything. Can anybody tell me, what is SELECT generator and how it works? Thanks in advance. This selects the object you will operate on from the table, similarly to all database languages (sql, etc.) - is there anything in particular unclear? – kabanus Jun 30 at 18:50 @kabanus please share the working mechanism or a sample program – Zeeshan Khan 2 days ago By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, ...

java.lang.IllegalArgumentException: Failed to create query method in a JpaRepository

java.lang.IllegalArgumentException: Failed to create query method in a JpaRepository I use the technologies jpa, hibernate, spring boot - data, api REST. I have the following error: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'walletRestService': Unsatisfied dependency expressed through field 'walletRepository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'walletRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query method public abstract java.lang.Long com.wj.dao.WalletRepository.createWallet(java.lang.Long,java.lang.String)! No property createWallet found for type Wallet! Here is my code : Entity user: package com.wj.entities; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import javax.persistence.Entity; import javax.persistence.FetchType; impo...