Hibernate is a collection of related projects enabling developers to utilize POJO-style domain models in their applications in ways extending well beyond Object/Relational Mapping.
0
votes
0answers
4 views
Why this call from JSF to Hibernate controller returns javax.el.MethodNotFoundException?
I'm trying to execute a query to a mySQL database through Hibernate, for that I've developed a simple JSF page to introduce two words and search by these fields, but when I try to execute the method ...
0
votes
2answers
9 views
How to Write Integration test to check whether throwing exception in JAVA using TestNG?
I have a DAO which return some values and how to check a method throws an specific exception?
0
votes
0answers
26 views
Map<String, String> with JPA
I have JPA entity like this:
@Entity
@Table(name = "ATTRIBUTE")
public class Attribute {
//ID stuff
@Column(name = "NAME", nullable = false)
private String name;
@Column(name = ...
0
votes
0answers
5 views
ZK binder updating lists slow
For some time I have been working with ZK and now I have an application hosted in the cloud but this does not meet my performance expectations. My application uses ZK for the view, Hibernate for the ...
-1
votes
0answers
12 views
Hibernate persistence jee jpa
For my JEE Project, using netbeans7.1, glassfish3.2 and postgreSQL9.2 and i want to test JPA persistance classes.
I tryied javaee Persistance class to get an entityManager but it failed because ...
-1
votes
0answers
20 views
Struts2 jquery grid is not showing result
i am trying to create a json object with the help of some tutorials. From the Feed table i am getting a List i only want to show three columns of the Feed table i was able to get the values from the ...
0
votes
1answer
8 views
failed.org.hibernate.MappingException: Could not determine type for: String, for columns: [org.hibernate.mapping.Column(db col name)
I am using Net Beans IDE , When i start to deploy my web project it shows me at the console output an error says:
failed.org.hibernate.MappingException: Could not determine type for: String, for ...
1
vote
4answers
39 views
Hibernate saveOrUpdate large data
I am trying to insert or update a large data with Hibernate. I have a list contains 350k objects and when I use Hibernate saveOrUpdate(), it takes hours to insert all the data.
I am using the code ...
0
votes
0answers
25 views
Hibernate error - current transaction is aborted, commands ignored until end of transaction block
I'm having some problem with thie code:
private EntityManager entityManager;
public EntityManager getEntityManager() {
if (entityManager == null) {
entityManager = ...
0
votes
1answer
10 views
getResultList() generate org.hibernate.TransientObjectException: object references an unsaved transient instance
I'm aware that this problem has been asked several times before. But I believe I have a very different case, I'm currently encountering this error when invoking the getResultList() method, not when ...
0
votes
2answers
25 views
Java - How to correctly implement .equals on Hibernate POJOs?
I have trouble writing correct equals() function in POJOs to use with hierbante. My main problem is with List's.
For example I have an Entity Request which has a list of Persons
...
0
votes
1answer
11 views
nested transactions not supported When insert a record by hibernate
The error code like
org.hibernate.TransactionException: nested transactions not supported
at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.begin(AbstractTransactionImpl.java:152)
...
0
votes
0answers
8 views
Hibernate not finding mapping files in multiple directories with same class path
I am having problems when loading hibernate mappings from multiple paths.
My Spring session factory is define as follows:
<beans>
...
<bean id="sessionFactory" ...
0
votes
2answers
17 views
How does the data get stored in the 'singer' table when didn't make a commit for the object of that class?
There are certain things I do not understand about a small hibernate application for which the mapping xml is shown below.
<class name="pojo.Ghazal" table="ghazal">
<id ...
3
votes
0answers
32 views
How to avoid updating unchanged fields?
I need to configure my hibernate to avoid updating those fields that has not been changed.
So I have added the following annotation to my class but it crossed the Entity, and dynamicUpdate.
...