1. How do I implement toString() in a class that is mapped with Hibernate? stackoverflow.comI have an instance of a class that I got from a Hibernate session. That session is long gone. Now, I'm calling |
2. How can I load a Hibernate-mapped set as an unmodifiable set? stackoverflow.comAn application I'm working on uses Hibernate exclusively to fetch a bunch of persistent objects from a database to memory. The application is to refresh this in-memory snapshot from the database ... |
3. Hibernate one-to-many + lazy loading stackoverflow.comI have an Account entity and an AccountTransaction entity. Account 1 <----> n AccountTransaction In my AccountTransaction.hbm.xml I specify a many-to-one relationship:
|
4. HIbernate and eager loading of collections stackoverflow.comI have a 1-many relationship between class |
5. Collection being eagerly loaded, even though lazy = true? stackoverflow.comI am running through a problem regarding Hibernate lazy loading. I posted this on Hibernate Forum but received no answer, so I thought that perhaps you guys here on stackoverflow could ... |
6. Hibernate Mappings being loaded twice coderanch.comHi, We are using Spring, Webwork, Hibernate in our web app. Hibernate session factory, and the mappings(hbm.xml files) are being loaded twice in the app server. First during the server startup, next when we load the login page of the app. I noticed this the hibernate/spring logs. I can also see the singificant memory usage being increased from server startup to ... |
7. Problem with Lazy loading one-to-one mappings forum.hibernate.orgHello, I'm trying to use Lazy Loading on one-to-one mappings. I followed the delegate pattern. Here are my mappings: |
8. NullPointerException upon loading of mapping? forum.hibernate.orgNewbie Joined: Fri Jan 09, 2004 1:02 pm Posts: 6 I'm playing around with Hibernate and AndroMDA and while it generally works like a charm, it started throwing NullPointerException after me a few compile runs back: Code: 19:17:15,937 ERROR Configuration:289 - Could not configure datastore from input stream java.lang.NullPointerException at net.sf.hibernate.util.StringHelper.qualify(StringHelper.java:241) at net.sf.hibernate.cfg.Binder.bindCollection(Binder.java:472) ... |
9. Lazy loading class mappings forum.hibernate.orgIs there a way to make the loading of the mappings occur as needed? We have an application that can run both 2 tier (fat client) and 3 tier. We are hitting 50 table mappings and the 2 tier start up time is already getting to slow and we will approach 350 table mappings when we are complete. Thanks, John |
10. Detecting loaded maps forum.hibernate.orgI want to show in a progress bar the progress of the loaded maps. For example in the console the following progress shows: INFO: Mapping resource: common/Organizacion.hbm.xml May 6, 2004 4:09:33 PM net.sf.hibernate.cfg.Binder bindRootClass INFO: Mapping class: common.Organizacion -> T_Organizacion May 6, 2004 4:09:34 PM net.sf.hibernate.cfg.Configuration addResource INFO: Mapping resource: common/Evento.hbm.xml May 6, 2004 4:09:34 PM net.sf.hibernate.cfg.Binder bindRootClass INFO: Mapping class: ... |
11. lazy loading in one-to-one mapping forum.hibernate.orgThanks for the response, this is really bad, I mean with lazy loading my queries go from 5 minutes to 8 seconds. The problem is the OneToOne is not optional. If I could somehow trap the EntityNotFoundException and return null this would be fine as well but there is a JBoss transaction interceptor that is throwing it from the accessor. |
12. Set in Set Mapping dont load the last set forum.hibernate.orgHi, i have a list in a list in my mapping, and the second list is always empty. I checked the data in the databases and the list shouldent be empty. I think this is a trivial question. here my 2 mappings: Mapping one: |
13. Mapping loading problems forum.hibernate.orgRead the rules before posting! http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version:2.0.3 Hi there. We have an application running on a managed env. So far it has no problems at all. Now I decided to create a diferent configuration to use in test cases, so instead of getting the datasource from a jndi I use a plain jdbc configuration. Problem is, When running ... |
14. Hibernate 3.0 rc1: loading the mapping takes very long forum.hibernate.orgHello I am a new hibernate user and I noticed that the loading of the mapping takes currently ages. I have only 30 mapped classes and every time running my test application takes approx. 2-3 mins just to load the mapping. This is currently not really acceptable if you like to do some rapid devlopment. Are there any similiar experiences and ... |
15. Loading object without mapping forum.hibernate.orgNewbie Joined: Sun May 01, 2005 11:30 am Posts: 2 Hi All, I have two tables, "Equipamento" and "Peca" mapped as follow. The Equipamento is parent in the database many to many relationship that isn't present in the mapped file, since it is comment out. If I comment out the reference to "Peca" in my hibenate.cfg.xml I receive "Equipamento" OK. But ... |
16. Loading an object from one-to-one mapping forum.hibernate.orgNewbie Joined: Sat Apr 23, 2005 10:50 pm Posts: 17 I have a Menu class that has a many-to-may relationship with the class SingleItem. When I persist the Menu class along with the collection of SingleItem objects everything works fine , and also I can retrieve the collection of objects when I load the Menu class from the database using hibernate. ... |
17. where clause in class mapping interferes with load() forum.hibernate.org |
18. how can i set lazy load in one-to-one mapping forum.hibernate.orgin hibernate2.18, i have to table Company and it's Profile, below is the mapping in Company mapping |
19. Efficient way to determine class of a mapped object w/o load forum.hibernate.orgselect case when c.id is not null then 'C' when b.id is not null then 'B' when a.id is not null then 'A' as clazz from A a left outer join B b on a.id = b.id left outer join C c on a.id = ... |
20. "where" in set-mapping prevents lazy loading ? forum.hibernate.orgWe have the problem, that when we restrict the one side of a many-to-one association with a 'where' attribute, lazy loading is switched off always. The mapping we are using looks like Code: |
21. loading mappings automatically forum.hibernate.orgHibernate version: 3.x Hello. We have here several subproject, all subproject result in a .jar containing various classes and some .hbm.xml mapping files Then we have other projects (let's call them main projects), which use those .jar. In those other projects, we need to load hibernate configuration, this include all *.hbm.xml files present in those jar. Assuming all those .jar are ... |
22. Best solution to have Hibernate load the mappings? forum.hibernate.orgHibernate version: 3 Hello, We have here an application splitted in several modules. Some of those modules provide beans along with their associated hibernate mapping file (a .hbm.xml in same package as the the class, with same name as the class). However, maintenance problems arise when it comes to managing all those .hbm.xml. Currently, in the final application, we have a ... |
23. Problem loading mapping forum.hibernate.orgHi to everyone, Few month ago I have developed a web application (using hibernate) that is currently running on an Oracle Application Server 10g without any problems... Now I have to make this application executable on a Oracle9iAS Containers for J2EE 1.0.2.2 using Java 1.3.1. In order to do this I have recompiled the hibernate3.jar with a 1.4 jdk setting the ... |
24. Lazy loading for one to one mapping forum.hibernate.orgi have one header table(table1) and three child tables (table2 and table3 and table 4) which are linked by the relationship as mentioned in the mapping file below. i have a search screen in which i search based on some criteria and display the displayed the header details alone. but what i notice is that even-though i have given lazy="true" for ... |
25. Lazy loading while using any mapping forum.hibernate.orgHibernate version: Hibernate 3.2.2 Mapping documents: Contract class hbm extract... |
26. Read mapping documents from .jar and ClassLoader forum.hibernate.orgHello, Hibernate version: 3.2.4 I am building a web app that uses hibernate. This app is binded to another project (foo.jar) which also uses hibernate. All hibernate related tasks (transaction demarcation, etc ) are implemented in foo project and lie within foo.jar. The secondary project (foo) also includes several mapping documents that are essential for the root web app to function ... |
27. Problem with loading extra lazy maps forum.hibernate.org |
28. Truly Lazy-loading Maps (in a multilingual site) forum.hibernate.orgDear all! I've been trying for a while to find a solution to this problem, but with no success. It is quite strange how googling around did not give me any useful information, giving the fact that we are not talking about anything exotic here, but quite a common problem: making a multilingual application (or a site, in my case). Basically, ... |
29. Adding to Map of immutable members without loading the set? forum.hibernate.orgHello All, I have some problems getting hibernate to behave as I require. Hope you can help. I have a simple class that manages a set of 'versioned' types (in this example BLOBS, but, relational objects must also be supported). In some cases we want to return all versions of the referenced data (an audit), but, in 99.9% of the cases ... |