lazy « Component « JPA Q&A





1. hibernate - lazy init joined component    stackoverflow.com

I used the mapping solution from this question to have a joined component. But it make hibernate trigger join query to obtain the component event i use fetch="select" in <join> ...

2. Design question:why a component can't be lazily initialized?    forum.hibernate.org

Hi all, Example of use : I want to store files in the database. For performance reasons, I want to be able to retrieve the name of the file without loadind its data. The solution would be to : * have a File class with its properties (name, type, ...) and a FileData class with the bytes. There is a one ...

3. lazy formula / lazy component    forum.hibernate.org

all you need is check the dtd for hibernate 2, property cannot be lazy for hibernate 3, property can be lazy, but wait for a hibernate 3 rc release to use it if you'arent advanced user. I haven't tried lazy property when it is a formula with H3, but it would be very very powerfull and could help to avoid the ...

4. Advise for lazy component    forum.hibernate.org

I have a class representing a forum post with an optional image : Code: public class Post { ... protected String title; protected ImageOrFile attachement; ... } ImageOrFile is a class that holds the file name, byte[], ... I'm trying to find the best mapping ...

5. imposible lazy-initialisation of many-to-one in an component    forum.hibernate.org

Newbie Joined: Mon Jan 17, 2005 1:09 pm Posts: 19 Hello, Is it possible to set lazy-initialisation of an many-to-one in an component to false? I tried to do it in the Reservation class, which contains an Stay class(component), and the Stay class contains an Place(on-to-many) If I lookup an reservation and trie to access the place of the reservation I ...