1. Execute DDL from hibernate stackoverflow.comI know that SchemaExport should be my friend. But I am using liquibase and want to execute the DDL - pure sql statements - generated from liquibase to recreate the database ... |
2. SQL , insert is possible on the table which is not present in terms of hibernate stackoverflow.comdoes insert query in hibernate requires table to be present. I mean when i have a query that insert some values in to the table which is not present . will ... |
3. Hibernate is updating instead of inserting, why? stackoverflow.comI'm starting my adventure with Hibernate, so please be patient :) I want to make mapping for two tables, for example A and B. The relation beetwen A and B is one-to-many. I ... |
4. Slow SQL inserts on Jersey webservice with Hibernate depending on client PC stackoverflow.comI have a Java desktop application that communicates with a Jersey webservice. I'm sending
|
5. HiberNate with |
6. sql-insert Invalid argument: parameter index is out of range forum.hibernate.orgAuthor Message epaisley Post subject: sql-insert Invalid argument: parameter index is out of range Posted: Wed Apr 21, 2010 5:06 pm Newbie Joined: Tue Apr 20, 2010 4:01 pm Posts: 2 Location: Omaha, NE I'm trying to write a custom insert statement with the |
7. how to call |
8. Named Parameter in sql-insert forum.hibernate.org |
9. Sybase stored procs and sql-insert or sql-update tags forum.hibernate.orgHi, I can't successful use sql-insert and sql-update tags with stored procedure written in Sybase. I tried different approaches, but none of them worked. In first approach I used these tags with stored proc and ?, like this. Code: |
10. SQL Insert Fails forum.hibernate.orgNewbie Joined: Wed Sep 28, 2011 2:39 pm Posts: 1 I am starting out with this tool and I seem be stuck. I have a simple class that inserts a contact(fname, lname, email) specs eclipse:indigo, ms sql 2008. When I run the class the following statement is generated (from sql profiler) Code: declare @p1 int set @p1=5 exec sp_prepexec @p1 output,N'@P0 ... |
11. BAD SQL grammer when inserting forum.hibernate.orgHi, I have a problem when inserting an object to a datase table: it writes me to the console, about jdbc exception, syntax error and bad sql grammer . Altought, it saves the object to the database (when I use db vizualizer), but throws this error, so my program cannot continue. I can't isolate the problem, because these are so general ... |
12. descriminators with sql-insert forum.hibernate.orgI have a base class Location and a sub-class PointLocation. I'm using Table per Class strategy with the CAT_CODE column as the descriminator. Both classes map to the LOC table which has a spatial column. I've created a view (LOC_VW) that transforms the spatial column into a latitude, longitude, altitude and is used for rehydrating the objects. I'm using the |
13. Custom Insert SQL forum.hibernate.org |
14. SQL-INSERT forum.hibernate.orgFor my lookup table, I tried to create the hbm.xml file with sql-insert statements , but at the time of object creation , I get the error : Element "class" does not allow "sql-insert" here.. Why is this happening ? How can I insert data into lookup table at the time of table creation ? Code: |
17. how to use |
18. sql-insert forum.hibernate.org |
19. Insertable Views & Understanding |
20. Hibernate insert SQL forum.hibernate.orgI have a batch of insert SQLs in a text file. How can I get hibernate to load this set of SQLs in the database? One way of doing that is to create an object for each of the insert SQLs and then call session.save(). However, I was wondering of hibernate has any support for custom inserts with values? thanks in ... |
21. Problem with Hibernate inserting extra bracket in LIMIT SQL forum.hibernate.orgHibernate version: hibernate-2.1.6.jar Code between sessionFactory.openSession() and session.close(): Session s = HibernateUtil.getSessionFactory().openSession(); Transaction tx = s.beginTransaction(); //createQuery uses HQL to select from the Jobs table List lstRules = s.createQuery("from Jobs j WHERE j.mailinglist_job_id = " + getMlJob().getMailinglist_job_id() + " " + " LIMIT 0, " + getMlJob().getSend_per_minute()) .list(); Iterator iter = null; if(lstRules != null) { iter = lstRules.iterator(); } //iter ... |
22. Custom sql-insert not working forum.hibernate.orgNewbie Joined: Sat Jan 27, 2007 2:03 pm Posts: 4 Location: Dallas, TX - USA Hibernate version: 3.2.3 Spring framework version: 2.0.4 MySQL version: 5.0.22 My custom SQL Insert statement is not running. Instead, hibernate chooses to use an Identity default insert statement shown below. I am using hibernate tags from xDoclet version 1.2.3 inside the java classes to generate the ... |
23. how to use sql-insert tags ... forum.hibernate.org |
24. PUSH : how to use sql-insert tags ... forum.hibernate.orgNobody know the solutions it is suprising ... Does someone use this tags ? Hi, I want to use the sql-insert,sql-update and sql-delete tags in my mapping. But for these request I don't know how in my java code call this request to set them the paramreters I need. Ex: |
25. |
26. DB cursor usage for SQL-Insert. forum.hibernate.orgNewbie Joined: Tue May 27, 2008 9:37 am Posts: 1 Hello everybody, I've got a problem I couldn't find any hints about at all. Hibernate seems to use a database cursor to execute an insert statement (the db doc says a statement was used which is no SELECT or VALUES clause). The statement and the data itself is ok. DB2 SQL ... |
27. custom |
28. Sql-insert set the Parameters forum.hibernate.orgHi All this is my stored Proc CREATE OR REPLACE PROCEDURE addNewUser( UserId1 int, UserName1 varchar2, Password1 varchar2, FirstName1 varchar2, LastName1 varchar2 ) AS BEGIN INSERT INTO TBL_USERS_TEMP (userid,username,password,firstname,lastname) VALUES (UserId1,UserName1,Password1,FirstName1,LastName1); END; And this is my .hbm.xml file like this |