1. Converting Hibernate's PersistentSet into CopyOnWriteArraySet stackoverflow.comI am using CopyOnWriteArraySet in the following class because I simply like its thread-safe iterator.
|
2. hibernate hql joins hashset question stackoverflow.comI have three tables users, survey, surveyreponses I used hibernettool to generate the objects/mapping/xml etc in the survey object there is a "set" of surveyresponses private Set surveyresponses= new HashSet(0); <-- this is generated code ... |
3. updating and adding data in HashSet in Hibernate Layer coderanch.comHi All, I don't find it right thats why I am keeping it for open discussion.I have got many to one relation in my Hibernate tables.. Lets say I have got one Advert table and it has got many options that is linked in different table Advert_Options.In addition to this I have got one Options_Definition table that basically stores various options ... |
4. CastException from Database to a HashSet forum.hibernate.org |
5. java.lang.ClassCastException: java.util.HashSet cannot be ca forum.hibernate.orgHi , i am new to hibernate , while execution my code , i am facing the following problem , plz specify the solution for this problem java.lang.ClassCastException: java.util.HashSet cannot be cast to java.util.SortedSet at org.hibernate.type.SortedSetType.wrap(SortedSetType.java:49) at org.hibernate.event.def.WrapVisitor.processArrayOrNewCollection(WrapVisitor.java:84) at org.hibernate.event.def.WrapVisitor.processCollection(WrapVisitor.java:51) at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:101) at org.hibernate.event.def.WrapVisitor.processValue(WrapVisitor.java:98) at org.hibernate.event.def.AbstractVisitor.processEntityPropertyValues(AbstractVisitor.java:55) at org.hibernate.event.def.DefaultFlushEntityEventListener.wrapCollections(DefaultFlushEntityEventListener.java:185) at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:118) at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:196) at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76) at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:35) at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:969) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1562) at ... |
6. HashSet and Contains, what am I doing wrong? forum.hibernate.orgHi all! I create an assignment to mCompany, and test that mCompany has that assignment. So this one passes: assertTrue("Company should have the assigment", contain(assignment, mCompany.getAssignments())); But not this one: assertTrue("Company should have the assigment", mCompany.getAssignments().contains(assignment)); contain(..., ...) is simple as: private boolean contain(Assignment a, Set s) { Iterator i = s.iterator(); while (i.hasNext()) { Assignment b = (Assignment) i.next(); if ... |
7. Unknown entity class: java.util.HashSet forum.hibernate.orgPage 1 of 1 [ 1 post ] Previous topic | Next topic Author Message tentacle Post subject: Unknown entity class: java.util.HashSet Posted: Thu Dec 30, 2004 6:08 pm Newbie Joined: Thu Dec 30, 2004 5:22 pm Posts: 1 Hi, When I create a Customer, associate an Order to the customer ... |
8. Is there a trouble with java.util.HashSet with Hibernate3.0 forum.hibernate.orgPage 1 of 1 [ 1 post ] Previous topic | Next topic Author Message suryavijayk Post subject: Is there a trouble with java.util.HashSet with Hibernate3.0 Posted: Mon Oct 10, 2005 5:47 pm Beginner Joined: Mon Aug 15, 2005 4:37 pm Posts: 27 Location: Washington DC Need help with Hibernate? Read ... |
9. java.lang.ClassCastException: java.util.HashSet forum.hibernate.orgI am getting this error in my HibernateUtil.java : java.lang.ClassCastException: java.util.HashSet at org.hibernate.util.PropertiesHelper.resolvePlaceHolders(PropertiesHel per.java:88) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav a:1173) at com.rhg.infrastructure.dao.util.HibernateUtil. |
10. New to Hibernate AND Java! Displaying a Hashset forum.hibernate.orgAuthor Message clueo8 Post subject: New to Hibernate AND Java! Displaying a Hashset Posted: Mon Dec 10, 2007 8:44 am Newbie Joined: Mon Dec 10, 2007 8:18 am Posts: 5 Hello. I have been given the task up updating a working application which currently uses Hibernate and Struts. To give a short background on the app, I have a ... |
11. How can I convert PersistentSet into HashSet? forum.hibernate.orgHi All, I'm wondering if there is any way to convert Persistent Collection into user defined collection through Hibernate Annotation? For example, if I have an @OneToMany mapping with the return collection Set, then the real implementation for the Set object I obtained should be PersistentSet. I don't want that in my implementation, so what kind of method I can use ... |
12. Hashset uses forum.hibernate.orgHi, This is Ramesh. I am implementing Hibernate in my project. I have one dobt when forgien key is mapped between one to many and many to one mappings as a biderectional mappings. If I saved the bean it has HashSet property. then is child beans will save or not. can any one please tell me Thanks & Regards Ramesh K ... |
13. Unable to Lazy Initialize a HashSet forum.hibernate.orgHi, I am having an odd problem where I cannot lazy initialize a collection. In the DAO have the following method: Code: public AirlineImpl readAirline(String pCode, Set |