• Register

Recent questions tagged hibernate

0 votes
1 answer 5 views
Problem: I am tryig to set up JPA to my RESTful webapi in order to make CRUD services on database. I am getting the error Could not find any META-INF/persistence.xml file in the classpath But actually ther in a persistence.xml in the folder META-INF 1 [main] ... at de.ham.ti.kapaplan.database.DBCon.main(DBCon.java:20) I double checked similar questions but non of them solved my issue. ann ideas?
asked 5 days ago muktaa 34.6k points
0 votes
1 answer 3 views
Problem: My project based on spring boot, Thymeleaf, MySQL, HTML and Jquery. I tried to make a @oneToMany Relation with unidirectional in maintainable, but it produces an only error. Please help me to solve this.Thanks in advance
asked 5 days ago jamuna1 30.2k points
0 votes
1 answer 3 views
Problem: Why am I getting this exception? package com.domain.idea; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.JoinColumn; import javax.persistence.OneToOne; ... (AnnotationConfiguration.java:867) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669) ... 145 more
asked 6 days ago Yeamin 22k points
0 votes
1 answer 12 views
Problem: What might be the issue? This application was actually working; however, I switched development machines recently and now cannot connect. I have disabled the firewall on my machine to see if that could be the issue but without success. Again, I am able to connect through PSQL, so I am really not sure what to think.
asked 6 days ago padma1 34.8k points
1 vote
1 answer 3 views
Problem: Any idea about it? Could not parse mapping document from resource employee.hbm.xml.
asked May 1 PkGuy 23.5k points
0 votes
1 answer 8 views
Problem: I had successfully written my first master child example with hibernate. After few days I took it again and upgraded some libraries. No sure what did I do but I could never make it run again. Would somebody help my figure out what is wrong ... same error message that is forcing me to believe that something is wrong either with hibernate configuration file or entity classes or save method.
asked May 1 muktaa 34.6k points
0 votes
1 answer 6 views
Problem: I had successfully written my first master child example with hibernate. After few days I took it again and upgraded some libraries. No sure what did I do but I could never make it run.
asked Apr 30 salim1 60.6k points
0 votes
1 answer 4 views
Problem: Does anyone know the solution of it? So kindly let me know .. Restful web services with spring and hibernate example
asked Apr 26 Ifra 36.4k points
1 vote
1 answer 4 views
Problem : Please help me to generating JasperReports > Exception in thread "main"org.hibernate.invalidmappingexception: unable to read xml
asked Apr 26 Abik Dey 4k points
0 votes
1 answer 4 views
Problem: Help! Why I get the following exception > Org.hibernate.lazyinitializationexception: could not initialize proxy - no session
asked Apr 25 ummeshani 9.5k points
0 votes
1 answer 4 views
Problem: This is my StudentDaoImpl class. package com.gavs.dao; import java.util.List; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.query.Query; import com.gavs.beans.Result; import com.gavs.beans.Student; import com.gavs. ... xml file in the WEB-INF/classes folder within the WebContent folder. This is A Spring MVC and hibernate project. Thank You
asked Apr 25 Yeamin 22k points
1 vote
2 answers 7 views
Problem: Any solution of this error? Exception in thread "main" java.lang.noclassdeffounderror: org/dom4j/documentexception.
asked Apr 24 PkGuy 23.5k points
1 vote
1 answer 6 views
Problem: I am workng on simple dependency injection program of spring and get this . Exception in thread "main" java.lang.noclassdeffounderror: org/apache/commons/logging/logfactory.
asked Apr 22 PkGuy 23.5k points
0 votes
1 answer 5 views
Problem: How can I solve the following issue: Exception in thread "main" org.hibernate.InvalidMappingException: Could not parse mapping document from resource com/lara/Person.hbm.xml at org.hibernate.cfg.Configuration.addResource(Configuration.java:616) at org.hibernate.cfg.Configuration. ... p1); s1.getTransaction().commit(); s1.flush(); s1.close(); System.out.println("done"); } }
asked Apr 21 munim01 21k points
0 votes
1 answer 4 views
Problem: How to configure second level cache in Hibernate 4.1.5 SP1?
asked Apr 19 Humaira ahmed 50.7k points
0 votes
1 answer 5 views
Problem: I have this problem: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: mvc3.model.Topic.comments, no session or session was closed Here is the model: @Entity @Table(name = "T_TOPIC") public class Topic { @Id @GeneratedValue(strategy= ... c:forEach> </ul> </body> </html> Exception is rised, when viewing jsp. In the line with c:forEach loop
asked Apr 18 munim01 21k points
0 votes
1 answer 5 views
Problem: I started learned hibernate. But when I try to use hibernate.cfg.xml. This says: "exception in thread "main" org.hibernate.mappingexception: invalid configuration." How can I solve this?
asked Apr 17 anika11 32.2k points
0 votes
1 answer 24 views
Problem: I am in trouble while solving it .. please help me .. illegal attempt to map a non collection as a @onetomany, @manytomany or @collectionofelements
asked Apr 7 Ifra 36.4k points
0 votes
1 answer 20 views
Problem: Please assist me in resolving this issue in the server encountered an unexpected condition which prevented it from fulfilling the request.
asked Apr 6 tuhin1 48.9k points
0 votes
1 answer 3 views
Problem: Could anyone kindly assist me in resolving this uncaught error &ldquo;Cells(rows.count 1).end(xlup).row&rdquo;?
asked Apr 5 tuhin1 48.9k points