-1
votes
0answers
10 views

Get data from two entities in Hibernate

By now i used a list to get a data from one entities. I put this data in json object and return object which have tree model. In tree model one sub-tree have data from one table. Then now i must get ...
-4
votes
1answer
28 views

How to store image in MySql using Java and also using Hibernate [closed]

I Want to store image in MySql using Java and also using Hibernate. Please tell me to store image in MySql using Java and also using Hibernate
1
vote
1answer
22 views

different validations in JPA

I am converting a project to JPA2.0 with hibernate implementation and JSF2.0. There is some annotations in the old project like @Length(min = 3) and @NotNull which are imported from ...
0
votes
1answer
39 views

Conversion of SQL into HQL

How to convert this sql in hql, I have only created simple hql without joins so far, having difficulty to turn following into hql select distinct rm.roomDescription,rm.roomID from Room rm inner join ...
0
votes
0answers
19 views

Hibernate criteria API: only one result

I have some problems with the Hibernate criteria API. I want to get rows of a table as objects, but limit the amount of returned results. Here is the code: Criteria c = ...
0
votes
0answers
13 views

How to request an embedded class?

I'm using a class entity with an embdeded id: @IdClass(value = Id.class) @Entity Entity { @Id long aid; @Id long bid; long param; } @Embdedable Id { long aid; long bid; } I would ...
-3
votes
0answers
23 views

Best Approach to develop a 3-tier Java EE Application?

I am a new bee in developing 3-tier Java EE applications. I want to develop a small 3 tier appliation using spring, hibernate and jboss7. To be clear my application should be an 3-tier Java EE ...
0
votes
3answers
91 views

javax.persistence.TransactionRequiredException: Executing an update/delete query

I am using JPA2.0+hibernate3.2+Spring3.0.5+MySql5.5 to implement DAO function,but it doesn't work and just throw javax.persistence.TransactionRequiredException when i tried to persist entity to DB. ...
0
votes
1answer
32 views

Full text search exception with special characters in PostgreSQL

I am trying to get the list of objects by search text. If I proceed this with special character string for ex, searchText ="Agenya\\&\&"; query like this (I am using Postgres's full text ...
1
vote
0answers
13 views

Doctype correct?

I'm trying to do and exemple of this site: http://www.compilr.org/struts-2-and-hibernate-4-application/1343/ But when i execute the aplicacion I can see this error on the Eclipse console: Initial ...
1
vote
2answers
32 views

Implement a generic search on persisted JPA entities

Say we have an entity Foo that contains various data fields, one being a List<Bar>. In turn, a Bar has various data fields, one being a List<Snafu>. We want to give the user an input ...
1
vote
1answer
32 views

Child objects are not deleted even though I have cascading on

Why are not feedback deleted when I delete food? I have the following mapping on the set of feedback. Issuing a named query like this delete from Food where id = :id . (Yes, I set the id on removal). ...
0
votes
0answers
12 views

com.mysql.jdbc.jdbc2.optional.MysqlXAException: XAER_INVAL: Invalid arguments

I am using JPA+Hibernate+Spring+Atomikos and got an odd error,i think the coding is not difficult to understand,so just paste it here and don't do too much explanation, 1.Entity @Entity ...
0
votes
1answer
42 views

Bidirectional Association In JPA Repository Not Working

Here are my tables: ORDER CREATE TABLE ORDER_DETAILS ( ID INT NOT NULL AUTO_INCREMENT , ORDER_ID VARCHAR(60) NOT NULL , ADDRESS_ID INT -- , DRIVER_ID INT , BARCODE_ID ...
0
votes
4answers
42 views

What cause org.hibernate.PropertyAccessException: Exception occurred inside setter

What cause this exception, I can't manage to find out. Request processing failed; nested exception is javax.persistence.PersistenceException: org.hibernate.PropertyAccessException: Exception occurred ...

1 2 3 4 5 54
15 30 50 per page