Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

StackOverflow Point

StackOverflow Point Navigation

  • Web Stories
  • Badges
  • Tags
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Web Stories
  • Badges
  • Tags

Hibernate

Share
  • Facebook
0 Followers
59 Answers
420 Questions
Home/Hibernate

StackOverflow Point Latest Questions

Alex Hales
  • 0
Alex HalesTeacher
Asked: October 3, 2022In: Hibernate, Java, jboss, jpa, resteasy

java – PersistenceContext EntityManager injection NullPointerException

  • 0

[ad_1] I have a war containing the following: META-INF/MANIFEST.MF WEB-INF/classes/META-INF/persistence.xml WEB-INF/classes/com/test/service/TestServlet.class WEB-INF/classes/com/test/service/TestEntity.class WEB-INF/classes/jndi.properties WEB-INF/classes/postgresql-ds.xml WEB-INF/jboss-web.xml WEB-INF/web.xml index.jsp persistence.xml: <?xml version="1.0" encoding="UTF-8"?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0"> <persistence-unit name="test"> <provider>org.hibernate.ejb.HibernatePersistence</provider> ...

  • 0 0 Answers
  • 1 View
Answer
Alex Hales
  • 0
Alex HalesTeacher
Asked: October 2, 2022In: Hibernate, hql, in-clause, Java

java – passing list to IN clause in HQL or SQL?

  • 0

[ad_1] I get List<Strings> by executing a query. This must be passed to another query of IN clause values. How to pass them in HQL? We can convert List to Array and can pass it, that’s not a problem. Finally, ...

  • 0 0 Answers
  • 2 Views
Answer
Alex Hales
  • 0
Alex HalesTeacher
Asked: October 2, 2022In: Hibernate, Java, jpa, jpql, orm

java – Doing an “IN” query with Hibernate

  • 0

[ad_1] The syntax of your JPQL query is incorrect. Either use (with a positional parameter): List<Long> ids = Arrays.asList(380L, 382L, 386L); Query query = em.createQuery("FROM TrackedItem item WHERE item.id IN (?1)"); query.setParameterList(1, ids) List<TrackedItem> items = query.getResultList(); Or (with a named parameter): List<Long> ids ...

  • 0 0 Answers
  • 1 View
Answer
Alex Hales
  • 0
Alex HalesTeacher
Asked: October 1, 2022In: Hibernate, jdbctemplate, Spring

Spring JDBCTemplate VS Hibernate in terms of performance

  • 0

[ad_1] That depends on your project and how well the Hibernate model fits the way you think. Speed/performance is irrelevant: If you can’t wrap your mind about how Hibernate works, your project will be riddled with strange bugs ...

  • 0 0 Answers
  • 2 Views
Answer
Alex Hales
  • 0
Alex HalesTeacher
Asked: September 30, 2022In: Hibernate, Java, Maven

java – hibernate-commons-annotations-4.0.1.Final.jar; invalid LOC header (bad signature)?

  • 0

[ad_1] I am new for Maven ..I am trying to create maven project for springMVC+Hiberante but I am getting lot of errors..can any one slove my problem please check my pom.xml for below <?xml version="1.0" encoding="UTF-8"?><project> ...

  • 0 0 Answers
  • 0 Views
Answer
Alex Hales
  • 0
Alex HalesTeacher
Asked: September 29, 2022In: Hibernate, Java, jpa

How to specify Double's precision on hibernate?

  • 0

[ad_1] How to specify Double’s precision on hibernate? [ad_2]

  • 0 0 Answers
  • 8 Views
Answer
Alex Hales
  • 0
Alex HalesTeacher
Asked: September 28, 2022In: Hibernate, Java, jpa, spring-data, spring-mvc

java – Org.Hibernate.AnnotationException: No Identifier Specified For Entity I don’t have a id in my table

  • 0

[ad_1] java – Org.Hibernate.AnnotationException: No Identifier Specified For Entity I don’t have a id in my table – Stack Overflow ...

  • 0 0 Answers
  • 6 Views
Answer
Alex Hales
  • 0
Alex HalesTeacher
Asked: September 27, 2022In: Hibernate, Java, jpa, persistence

java – How can you replicate Hibernate’s saveOrUpdate in JPA?

  • 0

[ad_1] The problem with the method outlined in the article that Pablojim linked to, is that it doesn’t handle auto generated primary keys very well. Consider the creation of a new ORM entity object, you can give this the ...

  • 0 0 Answers
  • 8 Views
Answer
Alex Hales
  • 0
Alex HalesTeacher
Asked: September 26, 2022In: Hibernate, jpa, Oracle, SQL

oracle – How can I execute a native SQL script in JPA/Hibernate?

  • 0

[ad_1] I have a SQL script with database dump. How can I execute it using Hibernate’s EntityManager? I tried it this way: EntityManager manager = getEntityManager(); Query q = manager.createNativeQuery(sqlScript); q.executeUpdate(); but it works only when sqlScript contains a single SQL query, ...

  • 0 0 Answers
  • 1 View
Answer
Alex Hales
  • 0
Alex HalesTeacher
Asked: September 25, 2022In: Hibernate, Java, jpa, MySQL, Spring

java – When are connections returned to the connection pool with Spring JPA (Hibernate) Entity Manager?

  • 0

[ad_1] In my java process I’m connecting to MySql using the following spring configuration: @Configuration @EnableTransactionManagement @PropertySources({ @PropertySource("classpath:/myProperties1.properties"), @PropertySource("classpath:/myProperties2.properties") }) public class MyConfiguration { @Autowired protected Environment env; /** ...

  • 0 0 Answers
  • 5 Views
Answer
Load More Questions

Sidebar

Ask A Question

Stats

  • Questions : 43k

Subscribe

Login

Forgot Password?

Footer

Follow

© 2022 Stackoverflow Point. All Rights Reserved.