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.

learn more… | top users | synonyms

0
votes
0answers
5 views

How can I close Hibernate session after iterating with ui:dataTable

If you are using lazy loading with Hibernate you can iterate though a collection as long as you keep your session open. At least, that's how I understand it. Now I want to populate a ui:dataTable by ...
1
vote
1answer
21 views

How to return a Map<key,value> using named query?

I am using named query for returning List<?>. But now i have a requirement that i have to return a Map<key,value> so that i can filter the duplicates using the key.. I have a named query ...
0
votes
1answer
17 views

No Persistence provider for EntityManager named “annotation”

Message.java import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; import ...
0
votes
0answers
10 views

Grails resultTransformer not applicable for DistinctRootEntityResultTransformer

In my Grails code I want to use both pagination and distinctlist, however Grails doesn't support that. So I Google some and found out put the line: resultTransformer ...
0
votes
1answer
16 views

Hibernate java jpa query

I've got a problem with select query in my java jpa hibernate. I'm trying to get list of student that are not in the specified group, but the assigment to groups are on the other table. Here is what ...
0
votes
0answers
8 views

apache camel hibernate insert

I have this camel route where json values from an url are inserted into my database. code: @Override public void configure() throws Exception { //voor elke tabel een andere route want bij ...
0
votes
0answers
17 views

Is it possible to do this kind of mapping?

Supposed I have one-to-many relation between 2 tables. Is it possible to do this kind of mapping between them: @OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.EAGER, mappedBy = ...
0
votes
1answer
16 views

Issue mapping class on hibernate java project

Im stuck with hibernate configuration. I have a sql database which I want to connect to my java project. This is my project tree folder: I paste the hibernate.cfg.xml and Alumnos.hbml.xml code ...
0
votes
0answers
11 views

how to call a pipelined table function that pipes out BLOBs in hibernate

I've a pipelined table function which pipes out individual BLOBs. I would like to call this function in Java to receive blobs. Is there any way to do that?
0
votes
0answers
18 views

Hibernate persist parent or child object

I want to add a "Bar"-object to the "bars"-list in a "Foo"-object. So I create the "Bar"-object, set the "foo"-variable to the parent and add the object to the "bars"-list. Now my question: Do I ...
0
votes
0answers
21 views

Connection Pool Issue with MySQL

Seems to be an issue with my application. When ever the application is idle for a very long time ( am not sure the exact timing ) upon launching I get following error message in my logs. I am using ...
0
votes
0answers
15 views

Creating a shared key with a OneToOne Mapping and other issues

I am trying to do something that seems simple but I can't figure out. I am using JPA2 and hibernate but I would like a solution that could also work with another provider like EclipseLink but that is ...
1
vote
1answer
64 views

delphi hibernate push and detect

using Delphi5. I have an app that starts with windows boot and I would like to Close and Start it on the Hibernate/Wake command. I need to be able to detect if it is coming back from an Hibernate so ...
0
votes
1answer
19 views

Hibernation simple direct mapping

I have 2 tables employees and orders: Console screens_before execusion Now i'm trying to map list collection to get all orders of each employee. My mapping: @Entity @Table(name = "employees", schema ...
0
votes
0answers
11 views

Update a row in primefaces datatable that has data from 2 DB table with OneToOne relationship

I have a Primefaces datatable that displays data from 2 DB tables - Users and AcademicStuff. I am trying to write a function that will update a row, but right now only values from the table ...

1 2 3 4 5 1653
15 30 50 per page