1. Problem in passing a string array to HQL coderanch.com |
2. How to handle object array in Jasper Reports forum.hibernate.orgHello All, My Query returns two Objects List query = session.createQuery("from Obj1, Obj2 |
3. Passing array of String objects to an Oracle store procedure forum.hibernate.org |
4. Passing array of String objects to an Oracle store procedure forum.hibernate.org |
5. Hibernate changes my Result Array (many values equal) forum.hibernate.orgThis is my query... (sorry ^^) Code: SELECT fbStart.abfahrt, fbDest.ankunft, fbStart.id, fb11.id as id11, fb12.id as id12, fbDest.id, fb11.id - fbStart.id + fbDest.id - fb12.id AS dist, ((FLOOR(fbDest.ankunft / 100) * 60) + (fbDest.ankunft % 60)) - ((FLOOR(fbStart.abfahrt / 100) * 60) + (fbStart.abfahrt % 60)) AS timeDiff FROM FahrtBahnhof AS fbStart join FahrtVerkehrstage AS fvStart ON fvStart.fahrt_id = fbStart.fahrt_id join ... |
6. get a string array forum.hibernate.org |
7. How to strore the array of string in Database... forum.hibernate.orgHello sir, I want to store the array of String in single row in database..To solve this problem i use single String object and store it to database as in separate row or use collection to do this.. I feel these two things are unnecessary..i want to exactly store the array of string in single row..? I'm using..,JPA annotation,Mysql,java6.. Thanks in ... |
8. Q: extracting columns as object array forum.hibernate.orgHi, I would like to switch to hibernate, but see one pitfall for my project: For a socket based, proprietary communication protocol, I need to send the columns of the DB table in exactly the same order as in the DB over a socket connection. Is there a generic way of extracting the underlying data of a hibernate-persisted object as an ... |
9. Why is findDirty's returned value an array? forum.hibernate.orgHi, seems like I finally got it... but this does not necessarily means I undestand it :-( http://forum.hibernate.org/viewtopic.php?p=2182885 Debugging through Hibernate's code, seemed like my object would not be updated, because it was not considerated "dirty enough". The test I was running is like: Code: IBeneficiario b3 = mgr.newBeneficiario(); b3.setSolicitud(sol); ... |
10. Adding array values to database outside of wrapping object forum.hibernate.orgNewbie Joined: Tue Jun 08, 2004 8:07 pm Posts: 14 Location: Washington, D.C. Hibernate 2.1.2 I am trying to use hibernate for mapping UDDI types to a database. I object model is a little unique in that UDDI Services can be added to a Business just by having a the key of that business (which is a string). So here is ... |
11. Simple Array Question forum.hibernate.orgSearched the archives regarding saving arrays and read the Parent/Child example of the guide, but still am not getting the behavior I'd like to see. class A { private B[] arrayOfBs; ...mutator methods elided... } class B { String id; String text C[] arrayOfCs } class C { String text; } in A.hbm.xml I include... |
12. Array of UserType/PersistentStringEnum forum.hibernate.orgI have a class called KitchenEquipmentType which extends PersistentStringEnum. It has the following attributes ( currently ) KitchenEquipmentType.MICROWAVE KitchenEquipmentType.ELECTRIC_OVEN KitchenEquipmentType.GAS_OVEN KitchenEquipmentType.DISH_WASHER My House class has got the following attribute. protected KitchenEquipmentType [] kitchenEquipmentTypes; Now I'm a little bit unsure here. I've tried a couple of things and I just don't seem to be able to get XDoclet to generate my mapping ... |
13. HQL returning array? forum.hibernate.orgLooks like the find is returning a array Am I doing something wrong? Hibernate version: 2.1.6 Mapping documents: Code between sessionFactory.openSession() and session.close(): colDoc = session.find("select doc from Documento doc " + "left join fetch doc.docPK.codCli cliente " + "left join fetch doc.codCli.codOrg org"); Full stack trace of any exception that occurs: 14:22:39,844 INFO [STDOUT] Hibernate: select documento0_.COD_CLI as COD_CLI0_, documento0 ... |
14. SQL3 Array types in Hibernate ? forum.hibernate.org |
15. Array across columns? forum.hibernate.orgNewbie Joined: Tue Mar 01, 2005 12:33 pm Posts: 3 Thanks for the reply, but I am having troubles implementing this. Here is my mapping. Is this set up properly? There doesn't seem to be very much documentation on dynamic-components. Maybe I am just missing something? Code: |
16. How to remove entries in an array through saveOrUpdate forum.hibernate.orgI think this should be an easy question/answer, but I've been wrong before. I've defined a class that has a one-to-many relationship to another class, and I want the data from the one-to-many table to be returned as an array. Here's the definition of the parent class: |
17. trying to fill a static array ([]) with |
18. Types.ARRAY forum.hibernate.org |
19. Immutable array problem forum.hibernate.orgHi, I try to use a 1:N read-only immutable mapping. The class LoginUser has a method getAuthorities() which returns an immutable array of Authority objects. I tried several mapping settings. First I set the mutable flag to false and the cache usage to read-only in the target class Authorities. But that had no effect to the update mechanism. Hibernate tried to ... |
20. HQL equivalent to ALL (array) SQL construct forum.hibernate.org |
21. How to use |
22. how to get/set the array type? forum.hibernate.orgA DB supports array datatype, the SQL script could be : create table T (id int, arr int array[3]), how can I write the mapping xml? I set the column type to Java.sql.Array in hbm.xml, but when I run hbm2java, there are some error info: "Could not determine type for: java.sql.Array". In a tools refrences: if the property type is array, ... |
23. Statistics.getQueries() returns an empty array forum.hibernate.org |
24. Using the "array" sql type in an UserType forum.hibernate.org |
25. Distinguishing a Null Array from an Empty Array forum.hibernate.org |
26. Does Hibernate support Array for Oracle? forum.hibernate.orgHas anyone succeeded in using in an Array as input to an Oracle stored procedure? I have a simple Oracle stored function taking 1 input as VARRAY: { ? = call abc.test_function( ? ) } but couldn't find any instructions on building a Hibernate Java mapping for the input which is VARRAY in Oracle. Hibernate has this ArrayType class, however there ... |
27. what HQLcan I use to reach a string array forum.hibernate.orgI didn't look at your mapping but here is a simple test I did and it ran successfully. Entity class: Code: @Entity @Table(name = "Document") public class Document implements Serializable { @Id @GeneratedValue @Column(name = "Id") private Long id; @Column(name = "Name") ... |
28. HQL bug with array? forum.hibernate.org |
29. Using Hibernate with Oracle STRUCT or ARRAY of Objects forum.hibernate.org |
30. Column Based Array forum.hibernate.orgI have found a non-elegant solution again (but I am afraid this is the only one)... Basically I created a CustomType (Vector) based on the "DoubleStringType" file. The associated hbn file is awefull: Code: |
31. Storing an array of doubles in a single column forum.hibernate.orgHi, from searching the forums I know loads of people have struggled with this but I can't seem to get it to work either. I have an application that is storing historic stock market price data for a range of items. The amount of data available for each item varies so what I was planning to do was store the data ... |