1. Simple question: how to recover a list? forum.hibernate.orgOne of my pojo (called Contract) contains a List, called DocumentList which contains a pojo called ContractDocument. This list has been mapped like this: (xdoclet code) Code: /** * @hibernate.bag * inverse="true" * lazy="false" * ... |
2. Criteria.list() should throw exception for unmapped entity? forum.hibernate.orgNewbie Joined: Thu Jul 14, 2005 6:35 pm Posts: 2 Location: Virginia, USA Summary Calling Criteria.list() on an unmappped entity class does not throw a MappingException. Admittedly this was my fault, since I had forgotten to add a new persistent class to the Hibernate configuration. However, if you call Session.get(MyClass.class, id) when MyClass is not mapped it correctly throws a MappingException. ... |
3. query.list() forum.hibernate.org |
4. List mapping : index column management questions forum.hibernate.orgHibernate version: 3.0.5 I have read the documentation regarding indexed collections, but I have not found (in the reference manual at least) an answer to several questions about managing list collections with Hibernate: 0. Does the list index column need to also be a property of the child object, or does it only need to be declared as a column in ... |
5. Need help in HQL : select new List(...) from ... forum.hibernate.org |
6. Query.list() order by forum.hibernate.org |
7. |
8. Using an Array List in the predicate of a query? forum.hibernate.orgNeed help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp I am brand new to hibernate, and fairly new to Java. I am attempting to execute a query that finds ClassBeans that should be visible to a user based on his groups. the classBean has a collection of groups mapped as a set , my method will be passed an ArrayList ... |
9. Cloning objects with lists forum.hibernate.orgHi. I have a ClassA and it has a bag of ClassBs and this one has a bag of ClassCs. I want copy and the object of a ClassA with one or two properties changed with all the lists below but I don't want to go trough the lists and copy every level one by one. Is there an easy way ... |
10. list-index column comes up as NULL forum.hibernate.orgMy Department class has a arraylist holding employee's. When I add a new employee to my DB the list-index column comes up as NULL. Hibernate version: 3.0.5 Mapping documents: Department.hbm.xml: |
11. list() with left outer join query forum.hibernate.orgHi, I'm using Hibernate 3.0. This question may be a bit elementary but I have the following query, in which instances of a product (referred to as a 'type') are fetched along with keywords describing it : Code: select i from Instance as i left outer join fetch i.keywords as keywords join fetch i.type where i.status <> :status and ... |
12. What objects are in my returned query list? forum.hibernate.orgBeginner Joined: Thu Jul 21, 2005 10:28 am Posts: 21 Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.0.5 Mapping documents: Code: |
13. Possible to a a List Element without saving the list parent? forum.hibernate.orgI've got a situation where I have a "block" class which contains within it a list of questions (mapping below). For reasons mostly having to do with the web framework I'm using, I will, from time to time, need to add questions without being able to update the block I currently have in memory. So what I've been doing is: Block ... |
14. Index management with a List (bidirectional association) forum.hibernate.orgHibernate version: 3.0.5 When mapping a bidirectional association using a list (as suggested from the Hibernate Users FAQ), such that the collection-valued end controls the association, Hibernate is supposed (as far as I understand it) to manage the index assignment. Mapping documents: (see http://www.hibernate.org/116.html#A9) Code: |
15. |
16. Why does 'find' return a list of Object ? forum.hibernate.orgBeginner Joined: Wed Jan 19, 2005 6:07 am Posts: 20 Hibernate version: 3 The question : In the samples below, I do two searches, one plain search, and one search with a simple join. The first search is executed fine, and the correct subclass is instaciated and casted to one of it's implemented interfaces and returned. The second search, which includes ... |
17. problem during using |
18. xdoclet not adding index tag for list map forum.hibernate.orgok, I'll do it but while I confirm the strange behaviour I reported above now I get the same error from schemaexport with an xml mapping file done by hand that (for the list part) is like this: Code: |
19. dynamic criteria list forum.hibernate.orgHi Stefan Try this Criteria crt = sess.createCriteria(new YourClass()); if(info.getCountry() != null) crt.add(Expression.eq("country",info.getCountry())); List list = crt.list() ; This is for getting a value for a single Country. You can create a ArrayList and then add the country in to the list and pass it in the Expression. crt.add(Expression.eq("country",ArrayList)); I dont remember the syntax check it out. |
20. Using List in place of Set for one to many and many to many forum.hibernate.orgTraversing List through Index is definitely faster than the Iterator over Set, and the implementation of List to achieve many to many relationship notion in Hibernate is also achievable, however the List implementation does skew the association table semantics since you have to define index column in association table through index column directive in List segment which is bound to association ... |
21. 'null' object is returned in query result list. forum.hibernate.orgAuthor Message chihbn Post subject: 'null' object is returned in query result list. Posted: Fri Aug 19, 2005 3:41 pm Beginner Joined: Tue May 17, 2005 9:10 am Posts: 29 Hibernate version: hibernate2 Name and version of the database you are using: Oracle RDB We've run into three cases which messed up query result with 'null' and without any ... |
22. Select List - NullPointerException forum.hibernate.org |
23. list-index base="1" will issue a separate update s forum.hibernate.orgPersonally, I think it is OK to have the sequence start from 0 in DB and have it displayed as S+1 because there are so many 'confusing' moments: For example a field in a record holds a foreign key to another record, but we tend NOT to display the FK, but rather some fields from the linked record/object. Another example would ... |
24. e-mail for this list forum.hibernate.org |
25. Null object in List for one-to-many mapping forum.hibernate.orgNewbie Joined: Thu Aug 25, 2005 10:49 am Posts: 5 Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp I am using hibernate version 3.0.5 and recently got into the weirdest of problems. I am using relationship settings as provided by hibernate, when I use set ( |
26. Problem with TransientObjectException and Query.list forum.hibernate.orgI have a problem with querying some objects and creating a list of these objects. I sometimes get a "TransientObjectException" in the following code and can't reproduce the problem and do not really understand why the exception is thrown. The Exception tells me "object references an unsaved transient instance - save the transient instance before flushing: de.pgew.netstructure.Controlunit" but I only query ... |
27. changing fetch mode changes List returned by Criteria forum.hibernate.org |
28. How to get slim list of objects with SQLQuery forum.hibernate.org.createSQLQuery( "select {loc.*}, {dic.*} " + "from DP_D_LOCATION loc left outer join SY_DICTIONARY dic on (dic.SYDIC_ID = loc.SYDIC_LOCATION_LEVEL_ID)" + " start with DPLCN_LOCATION_ID = :incId connect by prior etc....") .addEntity("loc", Location.class) .addJoin("dic", "loc.level") .setLong("incId", locationId) .list(); |
29. Help, problem using 'distinct' to query a list forum.hibernate.orgHi, I am using hibernate 3.0. I'm trying to get a list of universities from my site table. My current approach is to write a select distinct query in Hibernate, for the siteParentName attribute; then use that list's size() method to get the number of elements. I am getting a null pointer exception when instantiating the query: public int getNumberUniversitites() { ... |
30. List Mapping Returns List with nulls forum.hibernate.orgI am trying to code a 1-many mapping inside a List element like so: |
31. list-index from the child side forum.hibernate.orgI use one-to-many mapping of parent child like structure. To store children objects it use list. /parent/ |
32. List contains unexpected null element forum.hibernate.orgI have a Product class which contains a List of ProductAttribute objects. The Product class maps to the 'product' table in MySQL and ProductAttribute to 'product_attribute'. On a couple of Products, when I call product.getAttributes, for some mysterious reason the list returned by Hibernate contains 3 elements, one of which is null, instead of the 2 elements it should contain. (There ... |
33. "Error parsing XML" for list mapping forum.hibernate.orgHey guys! I have a problem with my hibernate config for a list: it says I don't use the right child elements for the |
34. XML Persistence - Elemen List retrieval forum.hibernate.org[b]Hibernate version:[/b] 3.0 [b]Mapping documents:[/b] [b]Code between sessionFactory.openSession() and session.close():[/b] [b]Full stack trace of any exception that occurs:[/b] [b]Name and version of the database you are using:[/b] [b]The generated SQL (show_sql=true):[/b] [b]Debug level Hibernate log excerpt:[/b] I am using the XML persistence feature of hibernate. I am able to load the Element list successfully. But when i use selectNodes(using XPath expression) ... |
35. query for an object o where o.c equals a given List forum.hibernate.orgHi Im sorry, but i really got no clue how to resolve my problem. (Pseudocode) class A { List bs; } now i query 2 entities of b: B b1 = myquery("constraints ... ") B b2 = myquery("constraints ... ") My question now is: How to find the entity of A, where a.bs contains b1 and b2 and nothing else. My ... |
36. criteria.list returning more than one record on PK ??? forum.hibernate.orgHi Hibernate version:2.1 Code between sessionFactory.openSession() and session.close(): Session session = HibernateUtil.getSession(); Criteria criteria = session.createCriteria( A.class ); criteria.add( Expression.eq( "aId", new Long("15")) ); finds = criteria.list(); HibernateUtil.closeSession(); I have a table A with aId as primary key. When I search on primary key = 15, I get more than one record back. Is it because 1. It is possible to ... |
37. INSERT members of a child list without an UPDATE forum.hibernate.orgI have a system where we are batching up Hibernate objects and logging them to the database asynchronously. We are inserting a continuous stream of many objects. The resulting rows are only accessed with SQL on an infrequent basis from other processes. I noticed our system getting bogged down logging one of these types of objects with a mapping similar to: ... |
38. how to map list of lists of lists with many-to-many assoc forum.hibernate.orgI am just getting started with Hibernate and I am trying to figure out how to map a relationship I have. I have a class called Section, a class called Question and a class called PossibleAnswer. Section has a list of questions and Question has a list of possible answers. Section and Question have a many-to-many relationship as do Question and ... |
39. list-index Strategies forum.hibernate.orgK, I'm revisiting Hibernate for the first time since early versions of 2. I'm trying to figure out how to do bi-directional mapping via an array. The last time I tried to do this I used the child primary key for my list-index. This caused the resulting child array to have many empty elements. My question is what are people using ... |
40. ISOLATION_SERIALIZABLE and Hibernate Lists forum.hibernate.orgHi Everybody, I am currently having a really difficult time with a webapp that I have been working on. Here is the scenario: Background 1) I have a table with a list of QueueEntries which contains entries that are owned by Client objects. 2) The QueueEntries are mapped with a hibernate List because their positioning/index is important (they can be moved ... |
41. mapping of a list with a many to many forum.hibernate.orgHibernate 3.0 DB Postgres I am trying to get a list which is an attribute of my class Server. It is a list of class Service. The db tables here are a many to many. So I have table server, service, and serverservice. table serverservice has 3 columns the primary key and teh 2 foriegn keys. Here is the error I ... |
42. createQuery().list()-- the resultset has the same element forum.hibernate.orgHibernate version: 2.0 [b]My Sql Query is : String SQL_QUERY ="from MaOwnXref as A where A.OWN_MA_USR_ID= 'MSTRADM'" ; ArrayList lst = (ArrayList) hSession.createQuery(SQL_QUERY) .list(); The database is MS Sql. Now when i view the contents of the list "lst" in debug mode i see many rows in the list but all the elements in the list are the same. When i ... |
43. List Problem forum.hibernate.orgsubject:Mapping Hi!! can someone please give me solution to this problem........ I have two tables; 1) User 2) Address with a one-to-many relation (a User can have many addresses). I declared a list in User mapping. But when I call user.getAddressList(), the first element in the list is always null. For example, if I have 5 Address records, when I call ... |
44. Problem in Listing Records forum.hibernate.orgHi I have the following problem in Listing the records. When I try to list the records the first record is always null. Problem: ========== I have two tables; 1) User 2) Card with a one-to-many relation (a User can have many addresses). I declared a list in User mapping. |
45. Query.list() returns nested lists. Is this a bug? forum.hibernate.orgfrom Employment emp join emp.employmentSubstantiveRanks esr where emp.personnel.id = :PERSONNEL_ID and emp.fromDate = (select max(e.fromDate) from Employment e where e.personnel.id = :PERSONNEL_ID and ((e.toDate > :SYSDATE or (e.toDate is null))) and esr.comp_id.fromDate = (select max(esr1.comp_id.fromDate) from EmploymentSubstantiveRank esr1 join esr1.employment e1 where e1.personnel.id = :PERSONNEL_ID and e1.fromDate = (select max(e2.fromDate) from Employment e2 where e2.personnel.id = :PERSONNEL_ID and ((e2.toDate > :SYSDATE) ... |
46. How to deal with a SQL Query that returns a list of values forum.hibernate.orgselect entry from com.workpool.directory.Entry entry inner join entry.memberOf as member where entry.groupEntry=\"Yes\" and entry.name like '%(Countries)%' and view.entry.id = entry.id. the above query returns a result set is it possible to be able to create some sort of query in HQL on that result set comparring row by row the value from this set to another value from another table. I ... |
47. how to insert a list of objects forum.hibernate.org |
48. Binding a list argument in queries? forum.hibernate.orgHibernate version: 3.1rc2 I have some query trouble. I have a query where my parameter is list of Long's. Anyway here the query: from Holiday h where h.type = :calendarType and h.year in (:calendarYears) and here is the SQL it generates: Code: select holiday0_.id as id14_, holiday0_.version as version14_, holiday0_.calendar as calendar14_, ... |
49. list, one-to-many and intervening collection table forum.hibernate.orgHibernate version: 2 Hi, I have mappings: |
50. ArrayList instead of List in query results?? forum.hibernate.org |
51. Getting null values when using list mapping forum.hibernate.orgI am using hibernate to map 2 tables in a one-to-many relationship. I am attempting to get a list of Property objects. When I do this and look at the list of AuxProperties, I get a null values for each element of the aux_properties table that appears in the table prior to the matching row. Any ideas as to why it ... |
52. Criteria.list() returns non-lazy objects? forum.hibernate.orgFrom reading the reference guide, I was under the impression that properties of persisted objects would only be lazy-loadable if a certain build-time process was run (there's something about an Ant task). But calling Session.load gives me an instance on which even simple properties like ints and Strings are proxied. On the other hand, Criteria.list returns entities of the same type ... |
53. Newbie 2.1: how to retrieve list from joined tables, pls? forum.hibernate.orgHibernate version: 2.1 Newbie here ... really love Hibernate and it's been brilliant for stand-alone tables (MySQL 5.0). My problem lies in retrieving joined data from 2 or 3 (legacy) tables which define a Shopping Item within a Category and define Categories within a ParentCategory and uses CategoryXref to relate a Category to one (or more) Parent Category: 1. ParentCategory field1 ... |
54. Problem with storing list of objects.. forum.hibernate.orgHi, I have a class that contains another class public class VehicleOperation implements Serializable { protected ProfileContainer profileContainer = new ProfileContainer(); void setProfileContainer(ProfileContainer profileContainer) { this.profileContainer = profileContainer; } public ProfileContainer getProfileContainer() { return profileContainer; } } The inner class has a linked list of objects .. public class ProfileContainer implements Serializable { LinkedList |
55. How to select from a list of db's at run-time with MySQL? forum.hibernate.orgHibernate version: 3.0.5 Hi, Im working on a swing client application that must use give the user the option to create a new or use an existing database each time it runs. So I must be able to dynamically (at run-time) get a list of all of the existing (previously created by the user) databases or create a new one, with ... |
56. List to ArrayList? forum.hibernate.org |
57. Lists not returning expected content forum.hibernate.orgcorrect me if I'm wrong, but isn't a join on a many to many relatoinship going to return lots of repeat data? If this is being returned as a List of Arrays of Objects (one array of object for each satisfied join condition containing one object A and one object B), you will get many copies of A per each B ... |
58. multiple lists of same class forum.hibernate.orgHibernate version: 3.0.4 I have a class that contains multiple lists each containing the same class. For example: class Wiget { ... other fields ... List |
59. List-to-list / implicit polymorphism / both sides abstract forum.hibernate.orgUsing rc2. Has anyone successfully implemented a Hibernate mapping of a many-to-many association, where we're using the implicit-polymorphism approach (mapping leafs classes only) and both sides of the association are abstract attributes (non-leaf definitions)? Also, both sides of the association are lists. Here is the essence of my mapping effort: |
60. Hibernate 3 series Native Query .list() returns null objects forum.hibernate.orgAuthor Message jcampbell Post subject: Hibernate 3 series Native Query .list() returns null objects Posted: Tue Nov 15, 2005 11:47 am Newbie Joined: Mon Feb 07, 2005 3:46 pm Posts: 5 I switched to using Hibernate 3 series code recently, but didn't notice this problem untill just today. I am constructing a fully native query, and doing the following ... |
61. criteria - select a specify column list forum.hibernate.orgHi Try this out !!! If the values in the column are static then u can do it this way or Load the values from the DataBase and put it in a a List and do it ArrayList countryList = new ArrayList(); countryList.add("Switzerland"); countryList.add("Germany"); countryList.add("France"); Criteria critetria= session.createCriteria(Adress.class); critetria.add(Expression.in("Country",countryList)); List |
62. problem with list (in the list index). Possible enhancement forum.hibernate.orgHi, When I create List collection in hibernate, I want to use the oracle ROWNUM as the index column. But if i give the column name as ROWNUM, I get a database exception as the ROWNUM is not a physical column (as hibernate appends the columns names with table alias ). So I made a change to the DTD as below ... |
63. Subtle problem with indexed lists forum.hibernate.org
|
64. get list of unmapped objects thru hibernate forum.hibernate.orgHi, I want a list of unmapped (in Hibernate) SummaryBusinessObjects. Yet I'd like hibernate to map the result set to list of my objects. (so something like List myList = session.createSQLQuery(mySql).addMYOBJECT("currAd", SummaryBusinessObjects.class).list(); I've been reading a lot of documentation, and anything I find requires Entities. Is there a way to do this that I haven't found on my own? The only ... |
65. difference between |
66. Mapping for Retrieving a List forum.hibernate.orgNewbie Joined: Thu Nov 24, 2005 6:41 am Posts: 6 Hi, I am using hibernate 3.0.5, with. The mapping document Customer.hbm.xml and Hibernate.hbm.xml are attached. Also attached are 3 classes a test class, utility class and class I want to map. Mapping documents: Code between sessionFactory.openSession() and session.close(): // Session created as follows Configuration cfg = new Configuration(); cfg.configure(); SessionFactory factory ... |
67. Hibernate Lists Help forum.hibernate.orgNewbie Joined: Thu Nov 24, 2005 6:41 am Posts: 6 Hi, What I am trying to do is from a static method on a Customer class I want to retrieve all customer objects from the database. I have attempted to define this is the mapping document but it fails. I am new to hibernate and would appreciate any help that can ... |
68. How do I get a complete list of all tables forum.hibernate.orgHi, Hibernate version: 3.0.5. *** Mappings *** |
69. query returns list with 1 element: null forum.hibernate.orgHi! I have the following problem: When quering an association table, I get a list containing one element (this is correct, since there is only one entry in the table BEZ_SLA_WVGRUND). But when accessing the element at index 0, it turns out to be a null. Well, since the hibernate queries always worked fine for non-association tables, I guess, that somewhere ... |
70. What is the Hibernate dev team standpoint on nulls in lists, forum.hibernate.orgI have seen two threads about null elements in lists on Hibernate forum, so I will describe my problem as shortly as possible - in a one-to-many relationship I use a List because I want ordrering. When I delete any element other than the last, null is inserted instead of the element with the missing index (as opposed to other users ... |
71. session.get() -> OK; criteria.list() -> session error forum.hibernate.orgUsing hibernate 3.0. I have a table with example data like so: Code: +----+------------+----------+------------------------+-------+ | id | group_name | sequence | label | value | +----+------------+----------+------------------------+-------+ | 1 | CURRENCY | 1 | Sterling ... |
72. criteria.list() after deserialized? forum.hibernate.org |
73. How to get rid of 2-col PK for lists forum.hibernate.orgNewbie Joined: Thu Dec 01, 2005 1:02 pm Posts: 5 Location: Nijmegen, Nederland (nl) Hi, I am not happy with the schema generated for my object model. Everything works (no exceptions), but I would prefer a different kind of mapping. I am trying to create a Person that can have multiple Addresses. The addresses should have a determined order. My List ... |
74. Accessing list-index from list elements forum.hibernate.orgCan I get hibernate to put the list index into entities within the list? Or even better, can I put the nesting entity into the nested entity (allowing me to use getList().indexOf(this))? Consider this mapping fragment: Code: |
75. Removing a List from L2 cache forum.hibernate.org |
76. why use the query list obtain OutOfMemoryError forum.hibernate.orgi use follow code get record but occoure a error is OutOfMemoryError who can tell me why?????? Query qy = this.getSession().createQuery(hql); qy.setMaxResults(15); qy.setFirstResult(0); recordCount = this.getRecordCount(initHql); List result = qy.list(); another i have 10000 records in my table how can i do????? if only have 2000 records in my talbe hasn't the error why????? |
77. SQL Query Returns Result, But Empty List Returned [JSR220] forum.hibernate.orgProblem: I have a complex query using sub queries (yes I probably could do it with joins but wanted to find out why this does not work). Using simple queries against each table or limited subsets work fine. Taking the generated query and running it directly in the database also works. However, when running it in Hibernate I get no results ... |
78. why ref of element in list is important while updating list? forum.hibernate.orgWe have following Models public class FruitCollection { Integer id; Integer version; List |
79. How to map a List |
80. Return List on Criteria forum.hibernate.org |
81. Exception while retrieving data into a List forum.hibernate.orgNewbie Joined: Sun Jan 01, 2006 11:50 am Posts: 2 Location: Brussels I have an error using Sun Java System Application Server Platform Edition 8.1_02 (build b06-fcs) and Sun Java Creator Studio 2 EA 2. I tested my code with MySQL database 5.0.16 + hibernate 3.1 + Hibernate tools and Eclipse. The code works perfectly. Now that I try to use ... |
82. performance of |
83. Filtering Sets or Lists within Parent Objects forum.hibernate.orgHello I have been really loving hibernate. My only problem now is I need to filter a collection/set that belongs to a parent class. The parent class has a set of child objects that need to be filtered based on another table. The problem is the |
84. list.clear() with cascade=all forum.hibernate.org |
85. Getting distinct results in parent/child w/ List forum.hibernate.orgI'm trying to figure out the best way to handle using a List vs. a Set and if there are real limitiations imposed on me by using a Set for child records in a parent/child relationship. When using a List I get "duplicates" of the parent record because of the relationship between the two tables as a one-to-many. This can be ... |
86. |
87. Can JDBC IN parameters use with Array String or List? forum.hibernate.org |
88. List alias on on-to-many mapping forum.hibernate.orgGuys, I have a bit of a problem. I have searched the forum, but I can't locate anything. I have created Accessors for my properties. Now it can happen that my element name contains a . or - which makes it an invalid colum name. So in this case I would set the column attribute to a valid name and keep ... |
89. Too many instances returned from Criteria.list() forum.hibernate.orgHibernate version: 3.0 Final Mapping documents: parent class: Code: |
90. mapping java Collections map with a List as value type forum.hibernate.orgHibernate version: 3 Mapping documents: Code: |
91. Invalid characters allowed in property name,but not for list forum.hibernate.orgThanks for you reply. The reason why I need these invalid charactes is because we have an application that parses XML instance documents or XML schemas/dtd's and a number of formats and then deploy/create Java code that represents that model/structure. Now obviously we don't create java variables with those invalid charactes as they are invalid. Instead we create a generic method, ... |
92. NullPointerException inside q.list forum.hibernate.orgNeed help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version:3.1 Mapping documents: Code between sessionFactory.openSession() and session.close(): try { hibernateTx = hsession.beginTransaction(); Query q = hsession.getNamedQuery(GET_WORKFLOW_GROUPS_FOR_MEMBER); q.setInteger("memberid", memberId.intValue()); List workFlowGroupIds = null; try { System.out.println(q.getQueryString()); workFlowGroupIds = q.list(); //**** BLOWS UP HERE *** } catch(Exception e) { e.printStackTrace(); return null; } Iterator iter = workFlowGroupIds.iterator(); q = hsession.getNamedQuery(GET_CHANGEDOCS_ASSIGNED_TO_GROUP); while(iter.hasNext()) ... |
93. List element sets null values forum.hibernate.orgHi, Consider this. When I do getChildren fron a parent object as a List, index column as "sequence" I get the List with null elements. is there any way to prevent this. Say, I have 3 children with sequence values 2, 4 and 5. I get a List as [null,null,Child@3e323,null,Child@3e333,Child@3gf3e3]. Can I prevent this while loading the List? |
94. List efficiency forum.hibernate.orgI'm tring to write simple BBS system that has a few Forums, each forum has a number of posts associated to it, and each post could have a number of replies associated to it. My hibernate mapping file looks like this (simplified): Code: |
95. Sugestion: Give an option for returning a Map instead a List forum.hibernate.orgHello there, I'm currently using Hibernate in a project here. In a given moment, i have to use a query for searching. The Query returns a List. But I have to get this List and put it into a map strucure... Like this: Code: List peoples = dao.findByAge(age); //DAO using Hibernate Map peoplesMap = new HashMap(); for (Iterator it = ... |
96. Mapping a List or ScrollableResults to a Table. forum.hibernate.orgHello, I have all my data in a Collection (List) or I can also have them as ScrollableResults. I want to copy the data present in the List into a table in the Database (SQL Server 2000). I am using Myeclipse, Struts and Hibernate. Let me describe what I am trying to do. I am trying to check for a particular ... |
97. List Mapping Issue forum.hibernate.org |
98. list-index with base='1' writes the list with index 0. forum.hibernate.orgUsing Hibernate 3.1.2 (this was also occuring with 3.0.5) I can't seem to get a list with list-index and base='1' to work. My sequence field is always written starting with 0; the base='1' seems to be ignored. When the list is read by the same object, Hibernate complains that the sequence 0 (that it wrote) is out of bounds. Here's the ... |
99. Inheritance problem/question duplicate objects from List forum.hibernate.orgHi, have a question about inheritance i hope somebody can help me with. Dont know if it is my mapping or and error. Check question after mapping part. Using Hibernate version 3.1.2, Hibernate annotations version 3.1beta7 PostgreSql 8.1.3 Mapping is: Code: @Entity(access=AccessType.PROPERTY) @org.hibernate.annotations.Entity(optimisticLock=OptimisticLockType.VERSION) @Inheritance(strategy=InheritanceType.JOINED) public abstract class Event extends AbstractEntity implements IEvent { private Match match; ... |
100. list of object arrays instead of objects from hql query forum.hibernate.orgHibernate version: 3.1.2 |