1. "like" queries, parameter binding, and sql wildcar forum.hibernate.orgHi, I'm running Hibernate3 on Oracle. I want to use parameter binding to construct an SQL query with the "like" operator. I want to let my users search records that contain a string that they input, and so I want to build a query with a where clause that would ultimately look like this (suppose that "strSearch" contains the search string): ... |
2. Syntax for binding an array parameter in a query string? forum.hibernate.orgIf I have a query: String sql = "from Cat cat where cat.id in :keys"; Query q = getSession().createQuery(sql); How do I bind an array into the :keys parameter? There doesn't seem to be a Query.setArray() method, and the generic Query.setParameter("keys", new Object[] {"foo", "bar"}) doesn't seem to be working. I know I can do this with the Criteria api, but ... |
3. show_sql and bind variables? forum.hibernate.org |
4. Criterion: refreshing value binding forum.hibernate.org |
5. bind parameters forum.hibernate.orgNeed help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp when i change from sybase database to mysql the bind parameters don't work correclty i don understand what is the problem but the generated sql appears with :parameter then ? point. tnx for the help Hibernate version: 3.0.5 Code between sessionFactory.openSession() and session.close(): ... size = dao.getSociSize(" where UPPER(socio.cognome || ' ... |
6. Parameter binding problem forum.hibernate.orgorg.hibernate.SQL DEBUG 27 Jun 2005 11:18:40- select subscripti0_.elig_Sub_Id as col_0_0_ from elig_Sub subscripti0_ inner join elig_Mbr member1_ on subscripti0_.Sub_elig_Mbr_Id=member1_.elig_Mbr_Id inner join elig_MS membership2_ on member1_.elig_Mbr_Id=membership2_.elig_Mbr_Id, pers_MatchSet matchset3_ where (matchset3_.GeneratingHash=? and membership2_.pers_MatchSet_Id=matchset3_.pers_MatchSet_Id) org.hibernate.jdbc.AbstractBatcher DEBUG 27 Jun 2005 11:18:40- preparing statement org.hibernate.loader.hql.QueryLoader DEBUG 27 Jun 2005 11:18:40- bindNamedParameters() 11111222223333344444555556666677 -> h [1] org.hibernate.type.StringType DEBUG 27 Jun 2005 11:18:40- binding '11111222223333344444555556666677' to parameter: ... |
7. SQL binding problem with prepared statements using Criteria forum.hibernate.orgAuthor Message justen Post subject: SQL binding problem with prepared statements using Criteria Posted: Tue Jul 05, 2005 6:01 pm Newbie Joined: Fri Aug 13, 2004 11:41 am Posts: 9 Hibernate version: 3.0.5 Mapping documents: Code: |
8. How do you get Hibernate to NOT bind to JNDI?? forum.hibernate.orgI have a standalone java app that I am running from inside of Intellij Idea. I do NOT want Hibernate to bind itself to any JNDI tree. According to the docs: "If you wish to have the SessionFactory bound to a JNDI namespace, specify a name (eg. java:comp/env/hibernate/SessionFactory) using the property hibernate.session_factory_name. If this property is omitted, the SessionFactory will not ... |
9. Indexed Collections and parameter binding forum.hibernate.org |
10. Hibernate tries to bind a wrong data to its PreparedStatemen forum.hibernate.orgAuthor Message newm4n Post subject: Hibernate tries to bind a wrong data to its PreparedStatemen Posted: Wed Aug 31, 2005 8:18 am Newbie Joined: Wed Aug 31, 2005 7:24 am Posts: 3 Location: Jakarta Indonesia Im trying to insert a new unpersisted object PositionObserver. PositionObserver is extending Device (sourcecode provided). When i testing the saving operation, i got these ... |
11. HQL: Binding parameter to a collection expression forum.hibernate.orgFull stack trace of any exception that occurs: org.springframework.jdbc.BadSqlGrammarException: Bad SQL grammar [] in task 'Hibernate operation'; nested exception is java.sql.SQLException: ORA-00907: missing right parenthesis java.sql.SQLException: ORA-00907: missing right parenthesis at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189) at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:242) at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:554) at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1478) at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:677) at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2371) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2660) at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:457) at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:387) at net.sf.hibernate.impl.BatcherImpl.getResultSet(BatcherImpl.java:87) at net.sf.hibernate.loader.Loader.getResultSet(Loader.java:795) at net.sf.hibernate.loader.Loader.doQuery(Loader.java:189) at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:133) at net.sf.hibernate.loader.Loader.doList(Loader.java:950) at net.sf.hibernate.loader.Loader.list(Loader.java:941) at ... |
12. Incorrect binding of named parameters and filter parameters forum.hibernate.orgjava.sql.SQLException Error converting data type nvarchar to numeric. SQLState: 37000 errorCode: 8114 Stack Trace: * net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:364) * net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2754) * net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2195) * net.sourceforge.jtds.jdbc.TdsCore.isDataInResultSet(TdsCore.java:784) * net.sourceforge.jtds.jdbc.JtdsResultSet. |
13. can show_sql show the bind variable values for preparedstmt? forum.hibernate.orghi there, if i turn on show_sql, the preparedstatements are dumped with "?" in place for each variable? is there a simple way to change it to variable values at run time? i can provide my own jdbc connection and add logging to it. just curious if it's already there somehow. many thanks. |
14. Can't bind to SessionFactory forum.hibernate.orgNewbie Joined: Sun Sep 11, 2005 12:16 pm Posts: 1 3.0: Oracle 9i: JBoss_4_0_3_RC1: I am having some problems getting started with Hibernate. First, I am not sure if my configuration is correct. Second, when I start JBoss, I am not able to find the session object. I have a hibernate-service.xml and jboss-service.xml file located in the following directory: C:\jboss403\server\default\deploy\jboss-hibernate.deployer\META-INF I ... |
15. WARNING: Could not bind factory to JNDI forum.hibernate.orgHi I get this warning when running any criteria or activities on within my application. WARNING: Could not bind factory to JNDI javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:640) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243) at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280) at javax.naming.InitialContext.getNameParser(InitialContext.java:429) at org.hibernate.util.NamingHelper.bind(NamingHelper.java:52) at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90) at org.hibernate.impl.SessionFactoryImpl. |
16. Session Binding issue forum.hibernate.orgAuthor Message scottb022563 Post subject: Session Binding issue Posted: Wed Oct 05, 2005 7:47 am Newbie Joined: Wed Feb 23, 2005 2:08 pm Posts: 17 Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp We have implemented a custom naming strategy for our application, it works fine. We would like to only invoke hibernate.hbbm2ddl.auto as a stand alone ... |
17. Problems binding session for long conversations forum.hibernate.orgmaek75 Post subject: Posted: Fri Nov 25, 2005 6:34 am Newbie Joined: Mon Oct 04, 2004 10:54 am Posts: 15 11:32:33,876 INFO Environment:474 - Hibernate 3.1 rc1 log4j:INFO Creating new logger [org.hibernate.util.ConfigHelper] in repository [default]. 11:32:33,892 INFO Environment:489 - loaded properties from resource hibernate.properties: {hibernate.order_updates=true, hibernate.default_batch_fetch_size=8, hibernate.connection.driver_class=org.hsqldb.jdbcDriver, hibernate.cglib.use_reflection_optimizer=true, hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, hibernate.cache.use_query_cache=true, hibernate.max_fetch_depth=1, hibernate.dialect=org.hibernate.dialect.HSQLDialect, hibernate.jdbc.use_streams_for_binary=true, hibernate.query.substitutions=true 1, false 0, yes 'Y', ... |
18. Hibernate hql parameter binding problem forum.hibernate.org |
19. Could not bind session factory to JNDI forum.hibernate.orgHi, When I create session factory using following statement: sessionFactory = new Configuration().configure().buildSessionFactory(); it throws exceptions as following: 16:07:57,659 WARN SessionFactoryObjectFactory:98 - Could not bind factory to JNDI javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:640) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243) at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280) at javax.naming.InitialContext.getNameParser(InitialContext.java:429) at org.hibernate.util.NamingHelper.bind(NamingHelper.java:52) ... |
20. Parameter binding to prepared statements forum.hibernate.orgHi, I am using Native sql in hibernate. So one of my Class definition has |
21. ORA-01461: can bind a LONG value only for insert into a LONG forum.hibernate.orgWe have changed our database character set from USASCII7 to UTF8 to mirror the production environment. After this change the following error is being thrown by Oracle - ORA-01461: can bind a LONG value only for insert into a LONG column. We are using hibernate for the persistence layer. Has anyone faced this error before. If so what is the reason ... |
22. bind variables Question forum.hibernate.orgHibernate version:2.1.X Code in Persister: public List getParent(String ssn, String pin) throws HibernateException,Exception { List result = null; try { Session session = HibernateSessionFactory.currentSession(); StringBuffer sql = new StringBuffer(); sql.append("from CswCaseParent1 as cp where (cp.clientSsnId = ").append(ssn) .append(" AND cp.clientPinId = ").append(pin) .append(") OR (cp.respondentSsnId = ").append(ssn) .append(" AND cp.respondentPinId =").append(pin).append(")"); Query q1 = session.createQuery(sql.toString()); result = q1.list(); } catch (HibernateException ... |
23. ORA-01483: invalid length for DATE or NUMBER bind variable forum.hibernate.orgAuthor Message PatrickHiggins Post subject: ORA-01483: invalid length for DATE or NUMBER bind variable Posted: Fri Jan 20, 2006 7:22 pm Newbie Joined: Fri Sep 09, 2005 2:14 pm Posts: 1 I think this one is related to the blob we're saving, even though the Oracle error message doesn't says it's a date or number length problem. I've found ... |
24. Not binding factory to JNDI, no JNDI name configured forum.hibernate.orgApp.EAR META-INF application.xml jboss-app.xml WebApp.WAR WEB-INF jboss-web.xml web.xml classes ... |
25. running nested junit test causes binding problem forum.hibernate.orgPage 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message todge Post subject: running nested junit test causes binding problem Posted: Sat Feb 04, 2006 7:09 am Newbie Joined: Sat Feb 04, 2006 6:49 am Posts: 1 The nested test fails when trying to flush new ... |
26. Problem in Binding Session Factory to JNDI in Weblogic 9.0 forum.hibernate.orgNeed help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: Mapping documents: Code between sessionFactory.openSession() and session.close(): Full stack trace of any exception that occurs: Name and version of the database you are using: The generated SQL (show_sql=true): Debug level Hibernate log excerpt: Hi , I am using Hibernate 3.0 with Weblogic 9.0. I am trying to bind SessionFactory ... |
27. How to disable query parameters binding? forum.hibernate.orgHibernate version:3.1 Postgres 8.1 (Linux) Does anybody know how to disable query parameter binding? WE are trying to tune the perfomance of out application and found that if we run the query with parameters to the query passed as in-line it runs a lot faster. I can't find a parameter that I can pass to hibernate that would make it NOT ... |
28. logging bind parameters using jdk logging forum.hibernate.orgHi all, I'm trying to debug a problem and am trying to get the logging of the bind types (like I can by putting "log4j.logger.org.hibernate.type=debug" in my log4j.properties). This is on an environment where we use the jdk logging (running inside WL9.1) and I think I've configured the appropriate loggers correctly: org.hibernate.SQL ALL org.hibernate.type ALL but nothing shows up in the ... |
29. Problem Binding JNDI into JBOSS forum.hibernate.orgNeed help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.1 Mapping documents: hibernate-service.xml Code: |
30. bind queries don't find objects in session forum.hibernate.orgHi, We just moved from hibernate 2 to 3 and in doing so, updated all our queries to use bind variable queries instead of session.find. The problem is, while processing a document with multiple records, we required the ability to look at both the db objects we have created in the preceding records as well as the db if none matching ... |
31. bind in JTASessionContext forum.hibernate.orgI have been looking at the JTASessionContext implementation and it uses a map of (transaction, session). It will be a map of all transactions for the different threads. If I want to manipulate the map and bind and unbind a specific session to the transaction (for long conversations) I need to get a handle to the instantiated JTASessionContext of the specific ... |
32. Can I bind mult params to PreparedStatement on single column forum.hibernate.orgNewbie Joined: Tue May 16, 2006 4:38 pm Posts: 4 I am attempting to use the custom sql-insert so that I may call an SQL function, which takes 2 parameters, to be the value for a single property/column. As you can see in the Hibernate Debug output, the parameter index is incremented by 1 for each property/column, Hibernate has no way ... |
33. Native SQL witth bind parameters much slower than HQL forum.hibernate.orgHibernate version: 3.1 Name and version of the database you are using: Postgresql 8.1.3 Hello, I have a big query that I must implement as native SQL (it uses UNION). If I implement this query cleanly, ie with binded parameters, it is awfully slow (> 15 seconds). The query outputed with show_sql is fast (<1 second). I can get the native ... |
34. Query by Example binding more than assigned parameters forum.hibernate.orgHibernate version: 3.1 Name and version of the database you are using: MySql 4.0.18 The generated SQL (show_sql=true): Hibernate: select this_.id as id34_0_, this_.name as name34_0_, this_.product_id as product3_34_0_, this_.initialowner as initialo4_34_0_, this_.initialqacontact as initialq5_34_0_, this_.description as descript6_34_0_ from bugs.components this_ where (this_.product_id=? and this_.initialowner=?) order by this_.name asc Debug level Hibernate log excerpt: DEBUG ShortType:74 - binding '1' to parameter: ... |
35. Can't get hibernate queries with bind parameters to work forum.hibernate.org |
36. Binding problem when calling stored procedure forum.hibernate.orgHello, I am using hibernate 3.1.3 running from within JBoss 4.0.2, not as JMX bean but called from a stateless session bean that provides persistence services. The database is Oracle 9.2.0.4.0. The problem I am having relates to binding and how hibernate is mapping that to jdbc calls. Here is my hibernate.config.xml file: Code: |
37. Binding a named parameter to a user defined java object? forum.hibernate.orgHi I need to bind a named parameter in my HQL to a java object, what would be the type of the parameter in that case, would it be "Hibernate.OBJECT". So for example, my hql is: "select user from User user where user.role = :myrole" Now in the method call query.setParameter("myrole", a_role, Hibernate-type), what will the hibernate type be? Another similar ... |
38. Problem binding sybase text column to null forum.hibernate.orgNeed help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: Hibernate 3.0 with Springframework Mapping documents: |
39. ManyToOne field binding to Abstract Entity class forum.hibernate.orgI am using Java Persistence API (JPA) using hibernate-entitymanager-3.2.0.CR1. I am migrating my application from using JDBC to using Java Persistence API. The schema is fixed by an ISO standard (cannot be changed) and represents the relational mapping of an OO model with inheritance semantics. A simplified version of the inheritance Model is shown here: http://ebxmlrr.sourceforge.net/tmp/Simp ... iagram.png The UML diagram ... |
40. Logging SQL WITH named parameters and bind values forum.hibernate.orgI am using Hibernate 3.1.3 and would like to output the SQL WITH the named parameters and bind values. For example, hibernate currently produces... /* named HQL query request.loadByBusiness */ select request0_.oid as oid14_, request0_.version as version14_, request0_.request_details as request3_14_, request0_.response_details as response4_14_, request0_.notes as notes14_, request0_.status as status14_, request0_.request_date as request7_14_, request0_.request_member_oid as request8_14_, request0_.bus_oid as bus9_14_ from request request0_, ... |
41. Wrong value binding order when using stored procs forum.hibernate.orgHi, I'm using hibernate core 3.1.3 (jdk 1.5) and want to use stored procedures to persist data. To do so I've defined some insert, update and delete stored procs. The problem I have now is that Hibernate binds the Parameter totally different than defined in the callable statement and totally different than ordered in the hbm.xml. It seem as the binding ... |
42. How to bind a collection/array param in hql WHERE IN clause? forum.hibernate.org |
43. hibernate jdbc bind value forum.hibernate.orghi, in my log4j file, I have ### log just the SQL log4j.logger.org.hibernate.SQL=debug ### log JDBC bind parameters ### log4j.logger.org.hibernate.type=debug however, the bind value is not shown in my log. I got this in my log 14:38:51,343 DEBUG SQL:346 - select attribute_value_seq.nextval from dual 14:38:51,359 DEBUG SQL:346 - insert into ATTRIBUTE_VALUE (ATTR_TYP_ID, ATTR_ID, OBJ_ID, REL_ID, ATTR_VALUE, ATTR_INT_VAL, ATTR_FLOAT_VAL, ATTR_DATE_VAL, CUSER, MUSER, ... |
44. Oracle exception: ORA-24816: Expanded non LONG bind data forum.hibernate.orgHello I have run into the following problem when saving long string values through a spring/hibernate framework to a varchar2(4000 char) column in an Oracle 10g database. Caused by: java.sql.SQLException: ORA-24816: Expanded non LONG bind data supplied after actual LONG or LOB column This only happens when the string is over 1000 characters but strangely I can save strings up to ... |
45. |
46. SQL Query and class binding forum.hibernate.orgHello, I am using Hibernate 3.2 + Annotations. I have annotated a class, and wish to be able to tell hibernate to give me back a list of instances of that annotated class according to this SQL query. Now, if I use @NamedNativeQuery, no problem. Doing this works: Query query = session.getNamedQuery(Config.INSTANCE.getQuoteParamsQuery()); List |
47. Logging SQL Bind Variables forum.hibernate.orgHibernate version: Hibernate 3 My company is working with Jboss AS, using Hibernate as our persistence engine. We would like to include all SQL and DML statements processed by hibernate in our logs. In addition, we would like the bind variables logged as well. Setting the org.hibernate.SQL logger to DEBUG accomplishes the first task, logging all SQL/DML statements. However, logging the ... |
48. Parameter binding in wrong order when filter adds params forum.hibernate.orgHi, it seems that if you use a filter in the "order by" clause of your query, it binds the parameters in the wrong order. I've been looking through the code, and couldn't work out where the binding of filter parameters take place. Am I doing something wrong here, or is this a bug? Hibernate version: 3.2 Mapping documents: |
49. Help with Bind Queries forum.hibernate.orgIf I have the following hibernate config: |
50. [SessionFactoryObjectFactory] Not binding factory to JNDI forum.hibernate.orghi all, im using hibernate 3.0 with eclipse 3.2 and jboss 4.O n platform Windows all seems OK ; the application is workig well but i still getting some errors on the jboss console using JBOSS and Eclipse; any help plz. WARN [Configurator] No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/jboss-4.0.3SP1/server/default/tmp/deploy/tmp42928test_WEB-exp.war/WEB-INF/lib/ehcache-0.9.jar!/ehcache-failsafe.xml INFO [STDOUT] Getting the properties URL ... |
51. performance on binding parameter forum.hibernate.org |
52. Nullpointer exception when binding a type (SortedMap) forum.hibernate.orgpublic XClass getMapKey() { return new TypeSwitch |
53. Hibernate vs. Swing-SQL bindings? forum.hibernate.orgHello, First of all a big thank you for Hibernate. Although I have not used it in any larger project till now, I hope I had known Hibernate for much longer. It would habe solved so many problems ;) Currently I've to convert an old access-database to a Postgres or MySQL based solution, and because the old DB was horrible I'll ... |
54. HowTo: Bind Hibernate to JBoss DataSource, Securely forum.hibernate.orgI am trying to figure out how to create a SessionFactory when my web app is instantiated, securely. By securely, I'm trying to use the J2EE/JBoss security-domain setup where login-config.xml lists an |
55. Logging sql bind parameters forum.hibernate.orgHi, I am trying to use log4j logging to view the jdbc bind parameters being used by hibernate. On app startup I get logging such as this suggesting log4j logging is working fine and I can control thresholds displayed: 3468 [main] INFO org.hibernate.cfg.SettingsFactory - JDBC batch size: 15 When hibernate runs a query the loggin looks like this: Hibernate: select directcost0_.activity_id ... |
56. HQL parameter binding with a NULL object forum.hibernate.orgHibernate version: 3.2.3 I have a problem where a query returns no results. the hql i used is: Code: from Document document where document.owner = ? and document.parent = ? and i bind that the owner with a User object with id 1 and the parent with a Document that is null. i cleaned the sql generated by hibernate a bit ... |
57. upper() function in hql on column name and bind param value forum.hibernate.orgHello, I have a one question to ask about using the upper() function in HQL. I have a hql like this: from SampleModel where upper(lastName)=upper(:lastName) When i try to execute this query, i get the exception as mentioned in debug level hibernate log at the bottom of this post. Is the above hql not a valid one?? I executed the following ... |
58. Problem with binding parameter in polymorphic query forum.hibernate.orgI am trying to issue a named query where one of the bind parameter is a "class". This would be the same as doing: select cat from Cat cat where cat.class = ?1 but when I try to execute the query where the binding as been done with query.setParameter(1, DomesticCat.class) I first get a INFO log: INFO [org.hibernate.type.IntegerType] could not bind ... |
59. How to bind all annotated classes at compile time??? forum.hibernate.orgI am new to hibernate. I am using resin, hibernate with annotation. I found problem that my first query take too much time to get data from database. The reason I found is that when first time I hit the application first page the hibernate bind all the annotated classes, verify named query etc and then after these work it get ... |
60. No binding parameters logged forum.hibernate.org |
61. hibernate not binding anything forum.hibernate.orgCode: ... |
62. Getting SQL and Bind Variables before exception forum.hibernate.orgWhen an exception is thrown from the database or JDBC (SQLException) I need a way to dump the recent SQL(s) and bind variables. We do this in an existing app (stored procedures) using an AOP aspect that wraps all stored proc calls in try/catch and if the catch is fired asks the stored procedure wrapper (Java) what SQL and Bind variables ... |
63. Subclass Discriminator and Bind Variables Problem forum.hibernate.org |
64. How to bind SessionFactory to JNDI server through BASICAUTH forum.hibernate.orgHi, My hibernate.cfg.xml looks like ---------------- |
65. Binding SessionFactory to JNDI (WebSphere 5 security enabled forum.hibernate.orgOOps I clicked the wrong button. OK I have solved my problem. I am running Hibernate 3 on Websphere 6.1 FP 15, but this should apply to all Websphere as is quite a generic thing. All I had to do was to give permissions to the administrator for CORBA naming Service. To do this, in Websphere 6.1 might be different in ... |
66. Bind values for Criteria queries ... forum.hibernate.org |
67. Unable to bind Session Factory to JNDI using WAS 6.0 forum.hibernate.orgFull stack trace of any exception that occurs: Exception stack trace: javax.naming.NoPermissionException: NO_PERMISSION exception caught [Root exception is org.omg.CORBA.NO_PERMISSION: Not authorized to perform rebind_java_object operation. vmcid: 0x0 minor code: 0 completed: No] at com.ibm.ws.naming.jndicos.CNContextImpl.doRebind(CNContextImpl.java:2631) at com.ibm.ws.naming.jndicos.CNContextImpl.rebind(CNContextImpl.java:784) at com.ibm.ws.naming.util.WsnInitCtx.rebind(WsnInitCtx.java:229) at javax.naming.InitialContext.rebind(InitialContext.java:383) at org.hibernate.util.NamingHelper.bind(NamingHelper.java:74) at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90) at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:306) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294) at com.natesh.common.HibernateSessionFactoryImpl.(HibernateSessionFactoryImpl.java:18) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:177) at com.natesh.user.UserImpl.getUser(UserImpl.java:49) at com.natesh.logon.LogonImpl.validateUser(LogonImpl.java:14) at com.natesh.logon.LogonAction.execute(LogonAction.java:45) ... |
68. parameter binding order sql-query forum.hibernate.org |
69. bind the parameter for defined |
70. Problem binding a property which is a foreign key forum.hibernate.orgI've read the Hibernate manual, annotation guide, books, but I have not found any single exemple which does what I would like to do so I am posting it here. The problem seems to me quite simple. I have 2 classes, something like this: class A { List bList; long pk; // Primary Key ... } class B { long pk; ... |
71. Binding error in 'in' clause using HQL forum.hibernate.orgI have a named query as following: * @hibernate.query name="BusinessUnit.getBusinessUnitsForIDList" query=" select distinct \ * new com.cscinfo.cdsapp.model.hbm.BusinessUnit (bu.id, bu.businessUnitName, bu.dfltBusunitNameServerProfid)\ * from BusinessUnit bu\ * where bu.id in (:businessUnitIdList)" When running the code, I have a string parameter whose value resolves to '5902', '95'. But the binding is throwing error since 'bu.id' is of type long. 26 Aug 2008 00:24:45,704 INFO ... |
72. INFO [org.hibernate.type.StringType] could not bind value ' forum.hibernate.org |
73. INFO [org.hibernate.type.StringType] could not bind value ' forum.hibernate.org |
74. Oracle Bind Variable forum.hibernate.org |
75. SessionFactory binding and lookup in a weblogic cluster. forum.hibernate.orgHi all, we have trouble deploying our application in a clustered environment in Weblogic 10.3. Hibernate version is 3.2.5GA. It seems that the Session Factory is bound only to one node in the cluster, because I'm getting the following error in the logs: |
76. startup with annotations repeating the annotation binding forum.hibernate.orgAll, I recently migrated several applications from hibernate-xdoclet to annotations and have been trying to migrate our largest app with about 250 domain objects, but have run into an unusual problem. The annotation binding is taking an extremely long time and seems to be repeating the same elements over and over again upon startup. Below you can see that it is ... |
77. Not binding factory to JNDI, no JNDI name configured forum.hibernate.orgINFO: building session factory Mar 13, 2009 10:01:11 AM org.hibernate.impl.SessionFactoryObjectFactory addInstance INFO: Not binding factory to JNDI, no JNDI name configured Exception in thread "main" java.lang.NoClassDefFoundError: javax/transaction/Synchronization at org.hibernate.impl.SessionImpl. |
78. Parameter binding automatic conversion forum.hibernate.orgHi, It's possible to apply some automatic conversion logic when binding parameters? For example if I apply a Integer parameter to Long column, or String to Integer, with the setParameter(), can Hibernate automatically convert it to the correct type, or can I inject some conversion logic? Because I get classcastsexception like that: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long at org.hibernate.type.LongType.set(LongType.java:42) ... |
79. Insert query fail with parameter value binding forum.hibernate.orgNewbie Joined: Thu Aug 06, 2009 3:26 pm Posts: 1 Hi, I am using hibernate with jpa and spring with db2 zos. The dialect used is DB2390Dialect. My application is deployed on WAS 6.1 and that is installed on AIX. in WAS i am using the XA datasource to connect the database. I am using jtatransactionmanager(i,e was6.1 transactions) for transtactionality. The ... |
80. can not bind persistence unit to jndi forum.hibernate.orgNewbie Joined: Mon Aug 17, 2009 9:31 am Posts: 1 Hi, I am working with JBoss 4.2.3, springframework 2.5, and Hibernate for my web app. I am trying to bind the persistence unit configured in the persistence.xml to jndi but to no avail. Could somebody shed some light on me about the right approach? Thanks. Here is my configuration and stack ... |
81. could not bind value '10' to parameter: 1; [Microsoft][ODBC forum.hibernate.org |
82. Hibernate 2 Without jndi bind forum.hibernate.orgIs it possible in hibernate 2 to have session factory not bind to JNDI? in my cfg file I am specifiying name="" or removing name and it gives org.dom4j.DocumentException: Error on line 2 of document : The system identifier must begin with either a single or double quote character. Nested exception: The system identifier must begin with either a single or ... |
83. Cannot bind Bigdecimal data type in update query forum.hibernate.org |
84. combo box data binding forum.hibernate.orgI looking at using NHibernate for a 2 tier application and trying to get more info on sucessful strategies for binding nhibernate data model to a windows forms or wpf UI. One question I have is how to implement the tion of referenced entities using combo boxes. Lets say I have an object repsenting an order and it has a reference ... |
85. JDBC and Hibernate binding forums.oracle.comhi folk. i'm considering some examples of jboss, "jbossatwork" http://www.jbossatwork.com. i somehow understand first 4, but i'm now stuck in 5th. as i get, the problem is in binding hibernate. see, in 4th example (ch04) it binds through JDBC (JDBCCarDAO), and in 5th (ch05/05a-list) it tries to do through hibernate (HibernateCarDAO). when i try to run it through hibernate, in jboss ... |
86. Hibernate Query: parameter binding forums.oracle.com |