collection 2 « Collection « JPA Q&A





1. Questionable collection behavior    forum.hibernate.org

I'm not really sure if this behavior is a problem or not, but it does seem questionable to me. I've checked forums and docs, but have not found an adequate explanation as to why it is behaving this way. So, if anyone can shed some light - I would greatly appreciate it. class Trust { public Set getTrustees(); public void setTrustees(Set ...

2. Cannot Dereference Scalar Collection    forum.hibernate.org

I'm trying to do a simple query in a unit test as follows: Code: public void testQueryByInput() throws Exception { List keys = new ArrayList(); List values = new ArrayList(); keys.add("FirmName"); values.add("Protege Holdings"); ...

3. Nested Collections    forum.hibernate.org

I have 4 classes: Code: public class Base{ ... other attributes... X xClass; } public class X{ Map yValues; } public class Y{ String simpleString; List zValues; } public class Z{ List strings; } The list of the last class contains a FifthClass that has ...

4. Confused about collections    forum.hibernate.org

Hibernate version: 2.1.4 I have a one to many relationship, Person -> Role and a many to one relationship Role -> Permission. Each Role has one permission. Below is how I would do a query in SQL. How would I do the same in HQL? select * from Person person, Role role, Permission perm where person.roleId = role.roleId and role.permissionId = ...

5. SQLQuery and Collection Roles    forum.hibernate.org

Hibernate version: 3.0.4 Full stack trace of any exception that occurs: org.hibernate.HibernateException: Only one colection role return can be specified per sql-query at org.hibernate.loader.custom.SQLQueryReturnProcessor.processRoleReturn(SQLQueryReturnProcessor.java:184) at org.hibernate.loader.custom.SQLQueryReturnProcessor.processReturn(SQLQueryReturnProcessor.java:103) at org.hibernate.loader.custom.SQLQueryReturnProcessor.process(SQLQueryReturnProcessor.java:86) at org.hibernate.loader.custom.SQLCustomQuery.(SQLCustomQuery.java:95) at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:142) Name and version of the database you are using: SQL Server 2000 I noticed there is a constraint on collections reached from a root entity in sql queries. I ...

6. Initializing collections...    forum.hibernate.org

Hi Im quite new to Hibernate and seems to be missing something. I have read the FAQ and searched the web for an answer - but with no luck. Say I would like to initialize an object ObjA which has as a member collection "CollectionB" which can be reached by ObjA.CollectionB. At some points I want that CollectionB contains elements where ...

7. More on collections intialization :-(    forum.hibernate.org

Been searching for several hours I even posted a quest. earlier on this forum - but with no luck - I got an answer but I did not get it to work. So My problem seems quite normal. ObjA has two collections ObjA.CollectionB and ObjA.CollectionC. Both these collections are quite huge and I want to restrict the items in both collection ...

8. indexing a collection    forum.hibernate.org

i have mapped my XRef class with XDoclet and it works fine. Howeever, when i wanted to assign indexes to the collections held by my XRef class i ecountered some problems saying that my mapping is invalid. below is my mapping just for the collection public class XRef { ....some code /** * @hibernate.set inverse="false" * table="GeneSymbols" * lazy="true" * cascade="delete" ...

9. retrive a nested Collection in a jsp    forum.hibernate.org

In an Hibernate session i load an ITEM object wich have as property : String a; Collection b; and collection b has String c as property. Then in the jsp page (using JSTL) i can use normally ITEM.a to show the variable, but how can i show the nested collection variable? (ITEM.b.c gives ERROR!) tnkx a lot ;) ps: using hib ...





10. many-to-many collection issues with H3.1    forum.hibernate.org

Newbie Joined: Sun Aug 14, 2005 12:25 am Posts: 5 I'm trying to create a collection using an existing link table. It is similar to the one used in HIA page 230. I have three tables tbl_user lnk_user_dept tbl_dept The relationship between user and dept is many-to-many My User and Dept POJO work fine until I add the relationship and attempt ...

11. Collections.swap with PersistentList    forum.hibernate.org

Regular Joined: Mon Jul 26, 2004 2:28 pm Posts: 86 Location: Pensacola, Florida Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.0.5 Mapping documents: Code: ...

12. ClassNotFoundException:net.sf.hibernate.collection.Set    forum.hibernate.org

We are using a Eclipse Plugin Client (3.0.1 and 3.1) to connect to the JBoss Server 4.0.2. We are also using Hibernate and MySQL. When we try to connect from Windows XP Eclipse Plugin Client to JBoss Server running on Linux then it gives the following error. However, the same code works fine if a Windows XP Eclipse Plugin Client connects ...

13. hibernate and garbage collection    forum.hibernate.org

Hibernate version: 3.0 Name and version of the database you are using:Oracle 8i I have a servlet that opens a hibernate session, loads bunch of POJOs in to the memory, basically it is a POJO tree kind of structure. It is rather a large data structure. After those POJOs are marshalled in to an XML stream servlet ends and hibernate session ...

14. Iterating over a collection    forum.hibernate.org

Regular Joined: Wed Sep 10, 2003 2:26 pm Posts: 56 Location: San Diego, CA I'm including as much relevent information as makes sense below, but here's the gist: using hibernate 4.0.x in a Swing application. Because it's a Swing application, I'm trying to load the entire object graph into memory upfront, i.e. I turn off all lazy loading. My Payee object ...

15. Collection Initializaiton    forum.hibernate.org

I've unsuccessfully tried getting help on this topic before. I really would like to understand what going on with the problem i'm having. I have a class with a collection property. When the class instance becomes persistant and the collection property is being set, I need to iterate via the collection in order to compute some totals and to index the ...

16. ConcurrentModificationExceptio iterating nested collections.    forum.hibernate.org

l tx = sess.beginTransaction(); List aColl = sess.createQuery("from A as order").list(); for(int i = 0;i< aColl.size();i++){ A a = (A) aColl.get(i); List bColl = a.getBList(); for(int j = 0;j< bColl.size();j++){ B b = (B) bColl.get(i); List cColl = b.getCList(); for(int k = 0;k< cColl.size();k++){ C c = (C) cColl.get(k); if(c.getState() == true){ break;//: This results in a ConcurrentModificationException //: When the ...





17. Hibernate and Collections    forum.hibernate.org

Hi, I have this classes (and others similar examples), I want to use hibernate to persist them, but I don't find an example about how can I do it. There are two things in this classes: 1- I'm using hashtables, can I use hibernate to persist them? 2- I have a Collection in Users and Groups classes (in this case a ...

18. xml without collection    forum.hibernate.org

yes, of course should it be "Node2". copy and paste error. ;-) but the important thing is the node attribute. if i have two different node names, everything works fine. if i have the same node name for both components, only one component is shown. i guess the first one is overwritten by the second one. so, i've tried to do ...

19. LiveLink Collections Server    forum.hibernate.org

Hello, I'm just wondering what do I need to do to support another database vendor with Hibernate 3.1 ? The database is LiveLink Collections Server from OpenText (known previously as Basis) and they provide a JDBC driver. So far I've seen that I need to write a new implementation of "org.hibernate.dialect.Dialect" and what else ? any documentation related to that subject ...

20. Using the retrived collection for entire web application.    forum.hibernate.org

When user loge in I am making a call to database and retriving a collection of objects(Each object represents a table row). I don't want to keep this collection in the session and I don't want to make another call to the same table for some data as I already have it in collection. Is there any way to reuse the ...

21. Found two representations of same collection    forum.hibernate.org

Hi, i'm facing to the same problem than http://forum.hibernate.org/viewtopic.ph ... 00#2231400 eventhough i'm not clearing the session. Here is the code snippet : Code: try { SnapShot snapShotClone = (SnapShot) BeanUtils.cloneBean(pIdentifiedObject); ...

22. Hibernate complains about unchanged collection    forum.hibernate.org

I have an application that I use as my "laboratory for learning". Everything worked well for a mapped class until I added a business method that changes two properties (Integer and String) then updates the object. Even though no collection nor reference to collection is changed, Hibernate throws an exception: Don't change the reference to a collection with cascade="all-delete-orphan": eventmanager.Registration.attendancy. Anybody ...

23. java collections instead of hibernate collections    forum.hibernate.org

Hi, is there a way con configure hibernate in a way that it should return standard java collection types instead of hibernate collections? I ask because I have to send the query results to a remote client, where I dont want to use the hibernate jar. of cource a workaroound is to fill all the result in the serverside in a ...

24. Undesired Collection Eviction    forum.hibernate.org

Hibernate version: hibernate 2.1.8 I am having a performance problem I am attempting to resolve with the secondary cache. The secondary cache for my collections is being used if I do the proper pre-fetch, and works wonderfully!! (ie. "left join fetch"). My problem is occurring outside of read scope after bulk inserts and/or updates. I do a bunch of object creates ...

25. Multiple Collections    forum.hibernate.org

Hi, Apologies in advance if this is a dumb question but I've been having a problem with hibernate at work that I'm unable to work out. First off a general question... Is hibernate able to support join fetching of multiple collections so as all collections are initialised within a single selection statement. For example A has child collections B and C ...

26. indexed collection    forum.hibernate.org

I created a list and defined an index column (I read that it is mandatory to define an index for a list): In the Field class, I set values in the 'index' property. However, I can see that these values are overridden. Is there a way to manage ...

27. Best Practices: "Encapsulate Collection"    forum.hibernate.org

I am trying to design an entity class with the "Encapsulate Collection" refactoring, using Collections.unmodifiableSet(). http://www.refactoring.com/catalog/enca ... ction.html However, I have been encountering all sorts of difficulty with this approach, as Hibernate is throwing NullPointerExceptions at various places. I understand that Hibernate uses its own Collections implementations (PersistentSet, etc.), but I am not exactly sure how this should impact my code. ...

28. No collections of collections?    forum.hibernate.org

29. Hibernate collection v/s Java collection in SLSB    forum.hibernate.org

I have a peice of code such as below that runs in a SLSB. I have setup the hibernate properties to use the session/transaction of the container (weblogic) //SLSB EJB method Test1 persistTest1 (Test1 t1) { if (t1.getId() == null) { //if its a "new" Test1 ----------------------------------(4) so reset all attribute ids to null... for (Attrib fa : t1.getAttributes()) { fa.setId(null); ...

30. Collection inside Collection    forum.hibernate.org

No, as far as I'm aware, you'd have to make an intermediate class, though if you have the DB shape to model Map>, then the mapping pretty much writes itself. You'd just end up with Class1 containing a Map, and Class2 only has two members: its id (being the map-key from Class1) and the Set that you really wanted ...

31. The collection was unreferenced    forum.hibernate.org

Hi Everyone, i am trying to use collection filters but i am getting this error: The collection was unreferenced Here is what i am doing: -- I have a xml mapping file which has a query defined: Next, i have a method which returns a list i.e. public ...

32. collections    forum.hibernate.org

33. Collection prblem    forum.hibernate.org

Author Message craig1980 Post subject: Collection prblem Posted: Wed May 24, 2006 6:00 pm Newbie Joined: Wed May 24, 2006 5:47 pm Posts: 14 Ho all. I'm newbie to hibernate. I'm using this environment Hibernate version: 3.1.3 . JVM: 1.5.0_06-b05 RBBMS: MySQL 5 I have two tables: Menu and SottoMenu; the SottoMenu is a children of Menu. I have ...

34. Collection and JTable    forum.hibernate.org

35. reordering collections -- apologies for rehash...    forum.hibernate.org

Quote: when you say that you've not seen any problems so far, does that include instances where you've changed the sort order of detached objects? No, not really. Where we did change the order, we had used a list or used a simple set and sorted it with Collections.sort when required. I tried out a simple Foo---manytomany --Bar (one way) example ...

36. Timeout when storing Collections on WebSphere    forum.hibernate.org

Hi, we get a database timeout when storing an object containing a collection (ArrayList) on Websphere 5.1 with DB2 8.1 and Hibernate 3.0.1 using CMT. This is fairly simple test code without concurrency. It runs without problems on JBoss. Hibernate does an insert on the object first and gets the timeout when trying to insert into the collection table. It looks ...

37. Are Hibernate Collection wrappers thread-safe?    forum.hibernate.org

Hibernate version: 2.1 Are the Collection wrappers used by Hibernate multi-thread safe? If I have a Map loaded by Hibernate (e.g. an object has a map of properties). Is the Map thread safe for multiple simultaneous put() operations across different threads? In most of my code I had used the various Collections.sychronizedXYZ() methods (and now the 1.5 concurrent collections). But with ...

38. Collection fetches and firstResult/maxRows    forum.hibernate.org

Author Message yfmoan Post subject: Collection fetches and firstResult/maxRows Posted: Fri Jul 14, 2006 6:55 am Beginner Joined: Mon Sep 27, 2004 11:51 pm Posts: 21 l have code snippet used to be work in Hibernate 3.1.3 , but after upgraded to Hibernate 3.2 rc3 , the code broke without any error message. Code: public Integer ...

39. unmarshaling collection    forum.hibernate.org

Hi, I have folowing problem: I have client JavaWS application and server, when I pass a collection to client via RMI I have exception: java.lang.ClassNotFoundException: org.hibernate.collection.PersistentSet at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) I think this because objects in the collection is proxied, if I do folowing all is all ...

40. compare collection against another collection    forum.hibernate.org

41. DetachedCriteriaQuery on Collection    forum.hibernate.org

Hi, I want to create a DetachedCriteria query using Hibernate3.1 the query is on collection of obects. For eg Search for A where childrens B are b1 and b2; DetachedCriteria EmpCriteria = DeptCriteria.createCriteria("EmpCollection"); EmpCriteria.add(Restrictions.gt("age",new Float("50"))); DetachedCriteria ManagerCrit = EmpCriteria.createCriteria("manager"); ManagerCrit.add(Restrictions.eq("name","XYZ")); Above condition is on one object of collection similarly i want to more such conditions such as EmpCriteria.add(Restrictions.gt("age",new Float("30"))); DetachedCriteria ManagerCrit ...

42. unidirectional one-to-many set collection    forum.hibernate.org

Newbie Joined: Mon Sep 18, 2006 3:38 am Posts: 2 Hi! I have to table: terms: CREATE TABLE TERMS( TERM_ID CHAR(13) NOT NULL, LANG CHAR(2) NOT NULL, DESCR VARCHAR NOT NULL, PRIMARY KEY(TERM_ID,LANG) ) codetable: CREATE TABLE CODETABLE( CODE CHAR(15) NOT NULL, TABLE CHAR(8) NOT NULL, TERM_ID CHAR(13) NOT NULL, PRIMARY KEY(CODE,TABLE) ) for relation for the two table i'd like ...

43. Incorrect results with multiple contained collections    forum.hibernate.org

Newbie Joined: Thu Jan 12, 2006 6:02 pm Posts: 9 Hibernate version: 3.1.2 Mapping documents: Annotations @Table(name="EMPLOYEE") @Entity @PrimaryKeyJoinColumn(name="EMPLOYEE_ID") public class Employee extends BusinessRole { private List locations = null; /** * Default constructor */ public Employee() {} @ManyToMany(fetch=FetchType.EAGER) @JoinTable( name="EMPLOYEE_LOCATION", joinColumns = { @JoinColumn(name="EMPLOYEE_ID") }, inverseJoinColumns = {@JoinColumn(name="LOCATION_ID")} ) @OrderBy("name") public List getLocations() { return locations; } public void setLocations(List ...

44. DetachedCriteria and restrictions for collections    forum.hibernate.org

Hi, I want to select Users that belong to Public groups or don't belong to any groups at all. user<->group is a many to many assiociation. I have to use detachedCriterias, so I do as follows: DetachedCriteria crit = DetachedCriteria.forClass(User.class, "usr"); crit.createAlias("groups", "usrgroups"); Disjunction dis1 = Restrictions.disjunction(); dis1.add(Property.forName("usr.groups").isEmpty()); dis1.add(Property.forName("usrgroups.isPublic").eq(new Boolean(true))); crit.add(dis1); ... but this doesn't work, since creating alias on collection ...

45. sum() on collection giving bad results    forum.hibernate.org

Beginner Joined: Fri Apr 15, 2005 3:30 pm Posts: 46 Location: Fortaleza, Brazil Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.2cr4 Mapping documents:

46. Hibernate and the Java collections interfaces    forum.hibernate.org

Newbie Joined: Sat Dec 02, 2006 10:55 pm Posts: 10 Hey guys, im pretty new at using hibernate and im wondering how can a List or any java collections object be mapped, using Annotations in particular, say ive got the following two classes at the moment, can anyone PLEASE!! tell whats wrong with this: Code: package piransPackage; import java.io.*; import java.util.ArrayList; ...

47. Found two representations of same collection.    forum.hibernate.org

Newbie Joined: Mon Dec 11, 2006 4:43 pm Posts: 1 Hibernate version: 3.1.3 ] Full stack trace of any exception that occurs: Code: org.mediaslate.og.web.admin.webapp.action.ActionExceptionHandler 2006-12-11 15:39:32,000-- ERROR -- org.springframework.orm.hibernate3.HibernateSystemException: Found two representations of same collection: org.mediaslate.og.web.admin.model.User.roles; nested exception is org.hibernate.HibernateException: Found two representations of same collection: org.mediaslate.og.web.admin.model.User.roles org.hibernate.HibernateException: Found two representations of same collection: org.mediaslate.og.web.admin.model.User.roles ...

48. Choosing collections    forum.hibernate.org

Yes, I understand but if I have a List interface attribute in my class can I initialize it with LinkedList (concrete implementation) instead of an ArrayList? I made a very simple example using a LinkedList and I think it works but the book "Java Persistence with Hibernate" says that if I use List interface I have to initialize it with an ...

49. "collection w/ two sess" exc but using 1 sess and    forum.hibernate.org

2007-01-25 10:57:44,105 [main] DEBUG org.springframework.orm.hibernate3.HibernateTransactionManager - Found thread-bound Session [org.hibernate.impl.SessionImpl@e0a659] for Hibernate transaction 2007-01-25 10:57:44,105 [main] DEBUG org.springframework.orm.hibernate3.HibernateTransactionManager - Using transaction object [org.springframework.orm.hibernate3.HibernateTransactionManager$HibernateTransactionObject@384d99] 2007-01-25 10:57:44,105 [main] DEBUG org.springframework.orm.hibernate3.HibernateTransactionManager - Participating in existing transaction 2007-01-25 10:57:44,144 [main] ERROR au.com.copyright.tns.dao.hibernate.core.DpcMetadataDaoImpl - Hibernate Exception: org.hibernate.HibernateException: Illegal attempt to associate a collection with two open sessions 2007-01-25 10:57:44,144 [main] DEBUG org.springframework.orm.hibernate3.HibernateTransactionManager ...

50. collection roloe misuderstanding    forum.hibernate.org

Select item_no From skul left join skul2 on skul.skul_no = skul2.skul_no WHERE skul2.stock_ind != 'N' GROUP By item_no

51. Stored procrdure with collection    forum.hibernate.org

...

52. Initilaze a collection    forum.hibernate.org

53. Hibernate Collection Best Practices    forum.hibernate.org

Hibernate version: 3.1.3 I think this question borders somewhere between Hibernate best practices and overall Collection selection and use. I have looked all over (documentation, forums, internet) for a clear-cut answer, but I still don't quite feel comfortable with a particular direction. In this example I have two objects: ThingHolder Thing Let's say Thing has two properties: name (String) thingHolder (ThingHolder) ...

54. Issue with HHH-2534- illegal 'collection dereference'?    forum.hibernate.org

The HQL query below worked fine on Hibernate 3.2.0ga, 3.2.1ga, and 3.2.2ga and issued reasonable SQL. However, when upgrading to 3.2.3ga, it throws an exception (described below). Here's a link to the relevant Jira issue: http://opensource.atlassian.com/project ... e/HHH-2534 Looking at the release notes, according to Jira issue HHH-2534, it seems there were changes put in place which result in a "better ...

55. Interface-Implementation collection doubt    forum.hibernate.org

56. PreUpdateEvent same collection in oldState and state    forum.hibernate.org

I also have problems with the fact that the oldState and the state of the child collection appear to be the same although the child collection members have been modified. This is how I arrive at this situation: 1)I session.load() the parent from the database. 2)I Hibernate.initialize() the child collection to avoid LazyInstantiationException. 3)I session.evict() the parent to detach it from ...

57. Hibernate and Collections    forum.hibernate.org

58. Getting Nested Collections    forum.hibernate.org

Hi, I am having a little difficulty in retrieving the nested collections. Here is my scenario. Exam have Questions Question have Choices I need to get the Exam with questions and choices. My query works till Questions but how can I get the choices for each Question. exam = session.CreateQuery(@"select e from Exam e inner join e.Questions q inner join q.Choices ...

59. "fail-safe cleanup (collections)" messages    forum.hibernate.org

Is this error always based on the reported bug? My application is brand new, so I could have some bugs in it. I get "spammed" with this error in my hibernate log extremely often (several hundred times per hour). What else is a possible reason for this error? Thanks in advance, Matthias

60. Reassociate uninitialized collection    forum.hibernate.org

61. Found two representations of same collection    forum.hibernate.org

Hi All, I am getting this error and unable to resolve it. I found that there is a JIRA for this: http://opensource.atlassian.com/project ... se/HHH-511 and the JIRA says that it was resolved in 3.2, but I am not sure why we get this error. There was a patch for this posted by Rodrigo which says the following: Quote: Rodrigo S. de ...

62. Excessive Hibernate overhead when using larger collections    forum.hibernate.org

Beginner Joined: Wed Jan 28, 2004 3:42 pm Posts: 36 Hibernate version: 3.2.5 GA I have some serious reservations about the scalability of Hibernate, here's why: I am using Hibernate with a local (not distributed, yet) Coherence L2 & query cache, the cache high-units are set large enough so that all entities in question can fit into the cache. The Hibernate/Spring ...

63. How do you add to Collection without initialise whole collec    forum.hibernate.org

I have a many-many relationship much like person-event in the hibernate tutorial. When I add an Event to a Persons events hibernate first initialises the whole Set. This is fine for a small set of events but whe you have 40,000 events etc this is inefficent. How do I fix this please?

64. Best way to store a collection of collections?    forum.hibernate.org

Specifically, I need to store a map of Strings to Sets. I've tried to wrap the Set with a custom type, that stores as a property, but the ID field doesn't work. (it doesn't exist in the original set, no surprise there) I also tried writing a custom type (MapSetType.java) and abusing some static methods to manipulate rows in a separate ...

65. one to many collection implementation    forum.hibernate.org

66. Many-to-many collection management    forum.hibernate.org

Hibernate version: 3.1.3 Mapping documents for class Product : Hi, I tried to managed an association table with a "many-to-many set". The insert/update/delete operations don't work in all cases. For example, if I try to do the following actions : Code: // begin transaction Product prod = ...

67. Many-to-many collection management    forum.hibernate.org

Hibernate version: 3.1.3 Mapping documents for class Product : Hi, I tried to managed an association table with a "many-to-many set". The insert/update/delete operations don't work in all cases. For example, if I try to do the following actions : Code: // begin transaction Product prod = ...

68. Collection inside a VO    forum.hibernate.org

Hi all, I have a Table CAR for which CAR_ID is the PK. I have another table called PARTS where CAR_ID is a foreign key to CAR. PARTS table has a composite Key of CAR_ID and PART_ID. My requirement is to have a collection of Parts VO inside Car VO, so that when i save Car Vo, the collection of Parts ...

69. collection returning stale data    forum.hibernate.org

Newbie Joined: Mon Jun 16, 2008 6:11 am Posts: 2 Hi everybody, I have read many threads on this already, but I still can't get a proper solution working. Basically when each thread has it's own short lived session a collection element returns stale data some of the time and and up-to-date data other times. That is, a Hibernate mapped one-to-many ...

70. Collections    forum.hibernate.org

Hi, I have a problem with a simple list. Parent: Code: ... false false ...

71. uninitialize a collection    forum.hibernate.org

72. How to get Filtered collection    forum.hibernate.org

73. Collection returning inaccurate results.    forum.hibernate.org

74. Hibenate collections are case sensitive    forum.hibernate.org

75. Tracking changes on shared collections?    forum.hibernate.org

76. How to use specific collection implementation?    forum.hibernate.org

Hello, I'm using (or would like to use) Hibernate with Google Web Toolkit (GWT). GWT allows only certain collection implementations (eg. Vector) in client side, so I must use those implementations in my domain classes (POJOs). Can I force Hibernate to use Vector (or some other specific implementation) for collection association? Thank you

78. Accessing collection of Collections    forum.hibernate.org

Req.hbm.xml: SEQUENCE Lines.hbm.xml Comments.hbm.xml: Req.java will contain list of lines. and Line.java have list of comments. While retrieving columns ...

79. The collection was unreference ??    forum.hibernate.org

who can explain the reason of this exception: org.hibernate.QueryException: The collection was unreferenced i am using createFilter to count the total number of collection objects, i found the parent object is not proxied by cglib,if it is proxied then the exception will not throwed anyone can help me to solve it? thank you a lot!!

80. Found two representations of same collection"    forum.hibernate.org

additional information to the above post: ContactInfo contains ContactTypeDetail ContactTypeDetail contains PartyContactDetail PartyContactDetail contains PartyDetail PartyContactDetails hbm: ------------------------- hibernate-mapping package="com.core.model.impl" default-lazy="true" default-cascade="all-delete-orphan"> PartyDetail hbm: ------------------ ...

81. Help Hibernate + NamedQuery + Collection    forum.hibernate.org

05/05/2009 16:34:27 org.hibernate.util.JDBCExceptionReporter logExceptions WARNING: SQL Error: 0, SQLState: 22023 05/05/2009 16:34:27 org.hibernate.util.JDBCExceptionReporter logExceptions SEVERE: Nenhum valor especificado para parmetro 1. Exception in thread "AWT-EventQueue-0" javax.persistence.PersistenceException: org.hibernate.exception.DataException: could not execute query at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:637) at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:74) at br.com.dnasolution.dao.NaturezaDAO.getNaturezaByTitulo(NaturezaDAO.java:21) at br.com.dnasolution.facade.NaturezaFACADE.getNaturezaByTitulo(NaturezaFACADE.java:37) at br.com.dnasolution.gui.GerenciarProtocoloJF.selecionarNaturezaDocumento(GerenciarProtocoloJF.java:855) at br.com.dnasolution.gui.GerenciarProtocoloJF.access$7900(GerenciarProtocoloJF.java:104) at br.com.dnasolution.gui.GerenciarProtocoloJF$71.actionPerformed(GerenciarProtocoloJF.java:3045) at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1242) at javax.swing.JComboBox.setSelectedItem(JComboBox.java:569) at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:605) at javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased(BasicComboPopup.java:814) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273) at java.awt.Component.processMouseEvent(Component.java:6038) at javax.swing.JComponent.processMouseEvent(JComponent.java:3265) at javax.swing.plaf.basic.BasicComboPopup$1.processMouseEvent(BasicComboPopup.java:480) ...

82. Evicting collection from 2nd level catche    forum.hibernate.org

hi all, I want to evict a collection from Session catche. I tried with "session.evict()", but this only evicts an object from session and not collection object. I googled further to learn that collection always resides in 2nd level catche. Also to remove this we need to use, SessionFactory.evictCollection(). Here is my class Code: @Entity public class Department { ...

83. Having trouble with a collection    forum.hibernate.org

84. DML-style operations on collections?    forum.hibernate.org

Hi, My problem is that dml-style operations (as described here: http://docs.jboss.org/hibernate/stable/ ... irect.html ) only work if the from-clause names an entity. I would like to manipulate the contents of the collections for an entity. My entity is a class DemoPerson which has an collection named tags - this collection is mapped into the database-table demo_person_tags. ( NFO: Mapping collection: org.osbl.search.demodata.model.DemoPerson.tags ...

85. org.hibernate.SessionException:collections cannot be fetched    forum.hibernate.org

I was trying to write a simple batch process using the Stateless Session as per the Hibernate manual using the technique in section 13.3 of the Hibernate 3.2 manual. However, I still get an exception when I try to execute a query on that object in the stateless session. This object does have a property and that property is defined ...

86. Efficient way of retrieving 2nd collection?    forum.hibernate.org

I've got a query which loads a number of Tracks and their associated File objects. The query goes like this: Code: from Track t left join fetch t.files where t.album = :album That's all fine, and it executes in no time. Now, i've got a second collection in my Track objects which is called keywords. This collection contains Keyword objects for ...

87. Reading and writing collections    forum.hibernate.org

Our application uses values and ranges as data. Our records are in the form: non-uniq-key start finish payload We are constantly having to do the following operations: 1. new instance comes in. 2. load all non-uniq-key entries from database. 3. add db records to merger class. 4. add new instance (from 1) to merger class. 5. do merge. Some instances will ...