1. Hibernate list of custom composite type stackoverflow.comJoda Time has no concept of an interval between LocalTimes, so I made one:
Of course I made Hibernate ... |
2. Aggregate function on composite user type stackoverflow.comI have a composite user type that represents a monetary amount. This type spans to two columns.
When i am creating an HQL query that performs an aggregate function like "avg" on ... |
3. use composite datatype with hibernate forum.hibernate.orgazadeh, I finally got this working. By the way, I did read the docs (particularly the hibernate annotations doc) and did not find the solution documented there. I am not claiming that this is the "correct solution". Rather, I am simply suggesting this based on what worked for me. If anyone has a "better" or "correct solution", then by all means. ... |
4. "value types" (composite-elements) in HQL from cla forum.hibernate.orgnet.sf.hibernate.QueryException: could not resolve property: id at net.sf.hibernate.persister.AbstractPropertyMapping.toType(AbstractPropertyMapping.java:33) at net.sf.hibernate.collection.CollectionPersister.toType(CollectionPersister.java:943) at net.sf.hibernate.hql.PathExpressionParser.getPropertyType(PathExpressionParser.java:242) at net.sf.hibernate.hql.PathExpressionParser.end(PathExpressionParser.java:281) at net.sf.hibernate.hql.SelectPathExpressionParser.end(SelectPathExpressionParser.java:14) ... |
5. composite-element with BLOB/CLOB type forum.hibernate.orgAuthor Message mrtho1 Post subject: composite-element with BLOB/CLOB type Posted: Fri Dec 05, 2003 11:44 am Newbie Joined: Sat Sep 06, 2003 8:49 pm Posts: 8 I'm trying to map some sets in my application. I'm using the hbmtojava and hbmtoddl utilities to generate the java beans and ddl for the database (mysql). What I have is something like ... |
6. composite-id, one-to-many, sql type error forum.hibernate.orgNewbie Joined: Sat Feb 14, 2004 12:56 pm Posts: 8 Hi, I have to work on a legacy dbase with composite primary keys. Using postgres dbase, I get following error report: 18:13:57,593 DEBUG BatcherImpl:227 - preparing statement 18:13:57,671 DEBUG JDBCExceptionReporter:36 - SQL Exception java.sql.SQLException: ERROR: pg_atoi: error in "vvv": can't parse "vvv" The short version of the error is: Object A ... |
7. "Typed" one-to-one associations without composite- forum.hibernate.org |
8. Allowing user types within the keys of composite ids forum.hibernate.orgHibernate version: 3.0rc1 Hello, I have been trying to use a composite key which has, among its key properties, a user defined type that requires parameters. So, hypothetically, I'd like my mapping file to look something like: Code: |
9. composite-id Bad identifier type: forum.hibernate.orgI am getting the below exception when I try to intialize my sessionFactory. I am using spring to do this. What I dont get is why I am getting a mapping exception. The below keys map fine if defined as normal properties. I also don't see where the net.sf.hibernate.type.ComponentType come into it. Why is hibernate looking for that. I have tried ... |
10. Problem with date type in composite key forum.hibernate.orgHibernate version:3.0 Mapping documents: |
11. problem w/ HQL elements() with composite types forum.hibernate.orgNewbie Joined: Mon Sep 12, 2005 5:18 pm Posts: 6 Location: Cambridge, MA, USA Summary of problem: I have two classes, ConstituentTA and EmailTA with composite keys which are related through a many:many association. A third class, ConstituentSearchResultTA, has a many:one association to ConstituentTA. I am trying to execute an HQL query to return ConstituentSearchResultTA objects based on an email address. ... |
12. Mapping composite-id's having complex type key-properties forum.hibernate.orgHi, I'm having a Hibernate mapping file in which I would like to change the composite key (containing 2 long values) in such a way that it maps the id's to complex types. Let me illustrate this with my mapping files: hireDetails.hbm.xml Code: |