mysql 1 « MySQL « JPA Q&A





1. some Hibernate Question    stackoverflow.com

I have 2 question I wanna make Mysql table that have charset utf8 but I don't know where I shoud set the setting. (I just have a hibernate.cfg.XMl no any .xml ...

2. database sharing between two servers    stackoverflow.com

My current set up is a single dedicated server with Java, hibernate app running on tomcat, apache http server, MYSQL. I need to get a second server to share the load, but ...

3. Elegant way to handle upsert with Hibernate and MySQL    stackoverflow.com

I'm currently working on a batch import feature that sits on top of Hibernate and MySQL. My goal is to have Upsert functionality for several tables. I'm finding myself writing a ...

4. Killing Mysql processes staying in sleep command    stackoverflow.com

I am connecting a MYSQL database through hibernate and i seem to have processes that are not being killed after they are finished in the session. I have called flush and ...

5. How to use Mysql variables with Hibernate?    stackoverflow.com

I need to use a native sql query in Hibernate with use of variable. But hibernate throws an error saying: Space is not allowed after parameter prefix So there is a conflict with ...

6. How do I use mysql compress() / uncompress() with hibernate?    stackoverflow.com

How do I use mysql's compress() and uncompress() functions to compress text before I store it and uncompress it when I retrieve it using a mysql database with hibernate for ORM? ...

7. any third party free Java library that can calculate grades based upon marks of student?    stackoverflow.com

Hi i am making a school information software. Is there any third party reliable library that can be used for calculating grades of students referring marks for the same from specified ...

8. How to use database as backup/failover in hibernate?    stackoverflow.com

My application is based on the hibernate to fetched data from a mysql server. This mysql server is replicated to another mysql server instance. Today, I got a downtime as the ...

9. Hibernate: what's the difference between MySQLDialect and MySQLInnoDBDialect?    stackoverflow.com

What's the difference between MySQLDialect and MySQLInnoDBDialect? I've used MySQLDialect ever since, now I wonder how the above are different. Anyone?





10. MySQL & NetBeans problems    stackoverflow.com

Im doing for faculty some homeworks and have problem with one where I'm suppoused to run Tapestry application from NB and to input some values and then that values should be ...

11. Hibernate question    stackoverflow.com

I getting an error when running my program. the error is: org.hibernate.HibernateException: JDBC Driver class not found: com.mysql.jdbc.Driver. The driver is there...I am not sure what it causing this. Any suggestions?

<hibernate-configuration>
<session-factory>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property ...

12. Hibernate basic resource details needed    stackoverflow.com

For developing a simple hibernate application, what are the libraries and APIs needed? Obviously J2SE and a SQL database, I know, but, what about others? Application servers, etc...? Thanks!

13. DateDiff in Hibernate    stackoverflow.com

How to use Datediff (of MySQL) in Hibernate?

14. Cannot create PoolableConnectionFactory    stackoverflow.com

What is the problem? Can't connect to database?

   org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (
            Communications ...

15. hibernate change database dynamically for maintenance    stackoverflow.com

I have a java webapp using hibernate over MYSQL db. I need at least an hour of data maintenance daily, hence I need to bring down the db and switch ...

16. HIbernate with java    stackoverflow.com

I have these three tables. want to make pojo class and hibernate configuration files but confused in relationship. any help would be appriciate..

CREATE TABLE preprinttemplates (
  PRT_ID BIGINT(20) NOT NULL AUTO_INCREMENT,
  ...





17. Hibernate: MySql vs ' ' user    stackoverflow.com

I've started learning hibernate. Here is my hibernate-configuration file:

<hibernate-configuration>
<session-factory>

    <!-- connection settings -->
    <property name="connection.driver_class">com.mysql.jdbc.Driver</property>
    <property name="connection.url">jdbc:mysql://localhost:3306/hibernatelearning</property>
    <property name="connection.name">root</property>
 ...

18. mysql/hibernate: CAnnotAcquireResourceException    stackoverflow.com

I have a java application that is reading lots of data from a mysql database for processing, but it failed right away after I started the app, and threw this error:

errors:org.hibernate.exception.GenericJDBCException: ...

19. How to work with 2 RDBMS in a project    stackoverflow.com

I'm working with an java-web using MySQL RDBMS and I'm using Hibernate as an ORM in my project.
Now I upgrade my app to work both on web and on Android, ...

20. Non-GPL MySql connectivity from Java via Hibernate?    stackoverflow.com

I want to write a Java program that connects to MySQL using Hibernate, but I don't want my code infected by GPL, is there an Open Source library out there with ...

21. Hibernate scheme naming differs between OS    stackoverflow.com

I am facing the problem that the hibernate generated schema names (table names for example) differ between Windows and Linux. On Windows all table names are small case, e.g. account, whereas ...

22. Hibernate & MySQL: Streaming a huge result set    stackoverflow.com

I am trying to use hibernate to produce a dump of data from a database in a specific format and I am presently trying to do this using a ScrollableResults and ...

23. SHA Using Hibernate & MySQL    stackoverflow.com

We used JDBC in our application earlier and database was MySQL. Any password inserted or read from database were done using SHA. Since now we are migrating to Hibernate from MySQL, ...

24. Changing the projected value with MySQL    stackoverflow.com

How to change the projected value from select in MySQL? Is it possible with the following SQL?

SELECT IF(situation=0,1,0) FROM users;
Thanks in advance

25. using Hibernate in netbeans: No CurrentSessionContext configured?    stackoverflow.com

I am trying to access MYSQL DataBase in my java application through hibernate using netbeans. I did this instructions exactly: but when I run my program, as I want ...

26. Hibernate MySQL Haversine    stackoverflow.com

I am attempting to use the Haversine formula. Ideally, I would like to use Hibernate provider with JPA and MySQL. This is the following query that I am using which appears ...

27. Display value from db in web page using hibernate    stackoverflow.com

I have a simple web application which retrives all enterys from a db table and when clicked on shows more details from other tables. I am using hibernate to map the ...

28. JPA-TopLink-MySQL    forums.netbeans.org

Search: NetBeans Forums FAQ Search Memberlist Register Profile Log in to check your private messages Log in ...

29. Newbie's question for Hibernate+MySQL    coderanch.com

I am trying to use Hibernate 3.0 + MySQL for a demo application. However, I got a problem for the syntax of my query. A simple example would be to list all the event from Events table. From some tutorial, the following code would bring you all the events: List result = session.createQuery("from events").list(); However, I always got exception saying checking ...

31. MySQL Autoincriment problem with JPA    coderanch.com

32. Problem in MySQL/Hibernate    coderanch.com

33. Reg. Updation in MySQL Database using Hibernate.    coderanch.com

I have a Composite key and i need only one of its key to get auto incremented. How is it possible to do it in Hibernate? I have set that key in MySQL Database to be a auto-increment but it is not functioning properly. I am encountering the following scenario. Actually the MySQL sequence starts with 1000, but while inserting to ...

34. Problems with hibernate and mysql?    coderanch.com

Hello everyone I want to run a .jar file, but the only way to run in my computer is with the command "java -jar file.jar ", but the problem is that the application conects to a mysql database, when I want to add something in the program appear a message that say "cannot open a conection", ant I get this in ...

35. mysql db /hibernate -- running out of space    coderanch.com

Hi Guys, We've been using mysql for quite some time (2yr) and learned that the size of the db tends to grow over time. Currently, if we dump my db we get a 3.2GB file. I'm aware that mySql can hold up to 4GB of data (I guess only on 32bit os). If this continues, we may find that the db ...

36. Issue with JPA + MySQL    coderanch.com

37. Hibernate and MySQL Views    coderanch.com

Hi I have a view that contains the following data. +---------+-------------+----------+ | team_id | cust_type | count(*) | +---------+-------------+----------+ | 2 | Account | 12 | | 2 | Lead | 13 | | 2 | Opportunity | 5 | | 2 | Others | 1 | | 2 | Partner | 16 | | 2 | PO | 5 | ...

38. Difficulties using Hibernate + MySQL    java-forums.org

Hi! I'm having my fisrt attempt to use Hibernate with a Mysql database. I'm just trying to insert a row into a table. When the code is run, no errors appear, but the following text appears in the console (and nothing is inserted into the database): Inserting Record Hibernate: insert into CONTACT (FIRSTNAME, LASTNAME, EMAIL) values (?, ?, ?) Done Shouldn't ...

39. Hibernate With MySql    forum.hibernate.org

I use hibernate 3.2.5 and mysql db.... Iam able to run my application in my local server, but when i deploy it in a private server (Mocha host), iam getting an exception org.hibernate.exception.SQLGrammarException: could not execute query Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: SELECT command denied to user 'lorlabs1_cloud'@'localhost' for table 'userTBL' Whenever i do any operation that db it is telling that access ...

40. Dealing with reserved works on MySQL    forum.hibernate.org

I would like to configure an existing application to use MySQL. Unfortunately the schema of the application contains some reserved word which cause the application to fail when run against MySQL. Initially I hoped to get around the problem by creating the tables manually and enclose the reserved words in quotes as suggested here:http://dev.mysql.com/doc/refman/5.0/en/reserved-words.html However there are still references to the ...

41. Blobbing to and from MySQL    forum.hibernate.org

Hi gang, got a weird problem and hoping someone can give me a hint. I have an Image class with binary data which I represent as byte[] (I also tried Blob which I may go back to as it probably will use less memory - streams instead of large byte arrays). I have the proper mapping and my data saves fine ...

42. mysql issues with hibernate    forum.hibernate.org

Author Message yuccanel@live.co.za Post subject: mysql issues with hibernate Posted: Tue May 04, 2010 4:47 am Newbie Joined: Tue May 04, 2010 4:38 am Posts: 4 I have used ide's to generate my entities from mysql and I cant seem to get my test data into the database. I get a wrapped mysql exeption as follows in tomcat 6: ...

43. Hibernate no longer able to log in to mySQL    forum.hibernate.org

DISCLAIMER: I'm a veteran programmer but brand new to this environment. Short Version: After upgrading to a new Mac and transferring everything with Time Machine, my Hibernate(/Spring/Tomcat/Eclipse) gets an "access denied" error when trying to connect to mySQL. Long Version: I have a server app built in Eclipse with Hibernate and Spring. Starting from SVN source, I was painstakingly able to ...

44. problem with weblogic 11r1 with hibernate and mysql    forum.hibernate.org

Hello, like the title i have problems using hibernate with weblogic.I've seen more then 100 pages on google on the argument but i am always stuck at some point. My project was working beautifly with jboss, but with weblogic i have a problem with the MySql connection.I don't know exactly what to do. If someone could tell me what is wrong ...

45. MySQL CONV method    forum.hibernate.org

46. Charset from Mysql - dotproject    forum.hibernate.org

I've an aplication swing that a query to database mysql and the query return me many errors of charset... The database and the tables have the type latin1, but alred change to utf8, latin1, unicode, etc... In my aplication, I use hibernate and change to utf8, unicode iso-8859-1, etc, etc... too In the properties from hibernate alread tryed: ...

47. Problem with Mysql 5.5.10 on MAC OSX    forum.hibernate.org

Newbie Joined: Sat Apr 02, 2011 1:06 pm Posts: 3 Hi there, I have a piece of code that used to work great up until today. My computer crashed so I had to reinstall it, and as a result installed the latest MYSQL from Oracle - 5.5.10. After running the application again it fails with this exception: Code: Caused by: java.sql.BatchUpdateException: ...

48. Hibernate and MySQL Views    forum.hibernate.org

Hi I have a view that contains the following data. Code: +---------+-------------+----------+ | team_id | cust_type | count(*) | +---------+-------------+----------+ | 2 | Account | 12 | | 2 | Lead ...

49. float rounding on MySQL    forum.hibernate.org

Hello, I have a float rounding problem with Hibernate which only appears with MySQL. The problem is: when an object contains a float data type, values inserted in mysql are rounded to their closest integers. For instance: .... ... corresponding to this class: public class TarifUsingAppel extends Tarif { ... } and ...

50. ArrayIndexOutOfBoundsException when use mysql    forum.hibernate.org

I met a strange question. I have two class: ---------------------------------------------------------------------------------- ...

51. org.gjt.mm.mysql.jdbc2.NotImplemented    forum.hibernate.org

52. Mysql deserialization Problem    forum.hibernate.org

hk.hku.csis.biosphere.webservices.buffer.PersistenceException: net.sf.hibernate.type.SerializationException: Could not deserialize a serializable property: at hk.hku.csis.biosphere.webservices.buffer.DatabaseCompletedTaskBuffer.getCompletedTask(DatabaseCompletedTaskBuffer.java:82) at hk.hku.csis.biosphere.webservices.buffer.DatabaseCompletedTaskBuffer.main(DatabaseCompletedTaskBuffer.java:91) Caused by: net.sf.hibernate.type.SerializationException: Could not deserialize a serializable property: at net.sf.hibernate.type.SerializableType.fromBytes(SerializableType.java:75) at net.sf.hibernate.type.SerializableType.get(SerializableType.java:35) at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:59) at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:51) at net.sf.hibernate.type.AbstractType.hydrate(AbstractType.java:66) at net.sf.hibernate.loader.Loader.hydrate(Loader.java:419) at ...

53. MySQL longtext    forum.hibernate.org

54. deserialization problem with MySQL?    forum.hibernate.org

Hi! I've created a class and a mapping for it. I developed my application using hibernate with the hsql-database, which worked fine for me. However: I tryed to switch to a Mysql-DB, so I changes the hibernate.properties to match my MySQL-Settings. My application can write to tha new MYSQL-Database and serialize all Objects without a problem but when it comes to ...

55. MySql subselect work around?    forum.hibernate.org

...

56. recommended dbpool for a production mysql database    forum.hibernate.org

Hi, I am moving a hibernate app into production. It will use a mysql 4.0 server with the standard jdbc driver. Standard webapp usage (up 7/24).Could someone recommend a dbpool? I would like it to be able to reconnect automatically to the database if the db goes down (as we take the db down for 5 minuts each nite to do ...

57. junit fails with mysql    forum.hibernate.org

using 2.1.2 and mysql server 4.0.18-9. the first problem seems to have something to do with the case in the table name. the second one says he can not deserialize a long. anybody got a clue? thanks from sql loader test: SQLException occurred net.sf.hibernate.JDBCException: SQLException occurred at net.sf.hibernate.impl.SessionImpl.findBySQL(SessionImpl.java:3767) at net.sf.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java:52) at org.hibernate.test.SQLLoaderTest.testFindBySQLStar(SQLLoaderTest.java:64) at org.hibernate.test.TestCase.runTest(TestCase.java:82) Caused by: java.sql.SQLException: General error, message from ...

58. Hibernate quickstart failed with MySql    forum.hibernate.org

HI I have MySql server version 4.0.15-NT on a Windows XP machine, and the mysql-connector-java-2.0.14-bin.jar JDBC driver. My hibernate.properties setting is: ## MySQL hibernate.dialect net.sf.hibernate.dialect.MySQLDialect hibernate.connection.driver_class org.gjt.mm.mysql.Driver #hibernate.connection.driver_class com.mysql.jdbc.Driver hibernate.connection.url jdbc:mysql://localhost/test hibernate.connection.username root hibernate.connection.password But when I execute "ant eg", I get the following error: [java] Setting up some test data [java] java.lang.AbstractMethodError: com.mysql.jdbc.jdbc2.Connection.prepareStatement(Ljava/lang/String;I)Ljava/sql/PreparedStatement; [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ...

59. hibernate "freezes" mysql 5.0    forum.hibernate.org

Hi, I just started writing a simple app using hibernate 2.1.2 and MySQL 5.0. After running a simple transaction, MySQL seems to freeze up on me. To illustrate, here is the first run of my code: ------------------------------------- Configuration cfg = new Configuration().addClass(Product.class); SessionFactory sf = cfg.buildSessionFactory(); Session sess = sf.openSession(); Transaction t = sess.beginTransaction(); sess.save(p); t.commit(); sess.close(); --------------------------------------- This 'completes' just ...

60. MySQL and txns    forum.hibernate.org

Does hibernate use the txn of the underlying database? I ask since I'm going to use MySQL for a project, and was wondering if I am required to use the InnoDB table type since the default, MyISAM doesn't support txns. I was wondering how hibernate gets around this (or does it)? Thanks

61. "Sleeping" MYSQL Database?    forum.hibernate.org

Author Message Brannor McThife Post subject: "Sleeping" MYSQL Database? Posted: Mon Apr 26, 2004 2:02 am Senior Joined: Tue Sep 23, 2003 8:18 am Posts: 137 Location: Johannesburg, South Africa Hi all, been a while since I last visited, but got an interesting little issue, that I believe is NOT Hibernate's ...

62. hibernate and mysql    forum.hibernate.org

63. MySQL Catalogs and hibernate    forum.hibernate.org

Hi all, Does hibernate have any way of supporting MySQL catlogs? I asked a similar question some time ago and got the feeling that perhaps support for my particular issue was on the way. My problem is that a design decision was made years ago that means that our database is split up into several catalogs (or databases as MySQL calls ...

64. AbstractMethodError whith "ant eg" with mysql driv    forum.hibernate.org

hi, I am trying to run the eg example with mysql driver 2.0.14 (my production driver) on mysql 3.23 with hibernate 2.1 Here is my hibernate.properties ## MySQL hibernate.dialect net.sf.hibernate.dialect.MySQLDialect hibernate.connection.driver_class org.gjt.mm.mysql.Driver #hibernate.connection.driver_class com.mysql.jdbc.Driver hibernate.connection.url jdbc:mysql://localhost:3314/DBpostcards?autoReconnect=true hibernate.connection.username atchik hibernate.connection.password atchik Here is the "ant eg" ouput. SchemaExport:160 - schema export complete [java] 09:50:53,354 INFO DriverManagerConnectionProvider:143 - cleaning up connection pool: jdbc:mysql://localhost:3314/DBpostcards?autoReconnect=true ...

65. Encryption/MySQL/Hibernate    forum.hibernate.org

All, After searching the forum, I think I already know the answer to this but I'll ask anyway. I'd like to be able to use the MySQL encryption methods with Hibernate when fetching/store sensitive data via Hibernate but it seems from what I have read that the two won't play. Is this still the case? I don't want to convert all ...

66. Hibernate changes my MySQL database    forum.hibernate.org

Hibernate version:2.1 Database version:MySQL Does anyone know what happens with MySQL and hibernate? I just execute a simple query over my MySQL database and there are indices in one of the tables(for foreign keys). After executing my code, all indices in my database tables are duplicated!!! The only "thing" that connects to my database is Hibernate and the code is just: ...

67. Adding to mysql db maddness    forum.hibernate.org

Newbie Joined: Tue Aug 24, 2004 1:14 pm Posts: 14 Hibernate version: 2.1.4 Mapping documents:

68. Hibernate 2.1 and MySQL 4.1.3b    forum.hibernate.org

Hi all, I don't know if I should call it a hibernate bug If ound because it only appears with MySQL 4.1.3 which is not on the compatibility list. Or I made a mistake which only causes problems with MySQL 4.1.3. So please let me know if I made sth. wrong. I post this because it could become interesting if one ...

69. MySQL IP address in URL problems    forum.hibernate.org

Newbie Joined: Tue Aug 24, 2004 1:14 pm Posts: 14 Hibernate version: 2.1.4 Mapping documents: rbbh jdbc:mysql://192.168.0.1:3306/rbbh_freedom net.sf.hibernate.dialect.MySQLDialect battle com.mysql.jdbc.Driver ...

70. many-to-many using standard examples just won't work!(mysql)    forum.hibernate.org

Hi. I simply cannot get hibernate to work properly and I'm hoping someone can help. It works fine if I use a many-to-one relationship, but many-to-many won't work. I decided to cut & paste the standard examples from the tutorial and have the same problem, so at least I know it's not the code. There must be something else I just ...

71. how to use MYSQL's max & lpad in Hibernate    forum.hibernate.org

72. MySQL 4.1    forum.hibernate.org

73. MySQL 4.1 clearParameters problem?    forum.hibernate.org

I am using Spring's hibernate support to store an object (it has a couple lists). When i call store, i get the stack trace below. It seems to be from the fact that MySql 4.1 now supports server-side prepared statements. When I change the BatchBatcher (catchy name, btw) and add: try { ps.clearParameters(); } catch (SQLException ignore) { } to the ...

74. Support for MySQL 4.1.x?    forum.hibernate.org

Sorry for pushing this question up, but I need to know quite soon, if I can upgrade to MySQL 4.1.7. I already searched for an answer in the documentation, in the forum as well as in the mailing list, but I couldn't find anything about it. IMHO this one cannot be that hard to answer... Thanks a lot in advance! Best ...

75. mysql 3.23 and having    forum.hibernate.org

76. problem running "build eg" using MySql    forum.hibernate.org

[java] Hibernate: select auctionite0_.id as id0_, bids1_.id as id1_, user2_ .id as id2_, auctionite0_.description as descript2_0_, auctionite0_.ends as ends 0_, auctionite0_.condition as condition0_, auctionite0_.seller as seller0_, auct ionite0_.successfulBid as successf6_0_, bids1_.isBuyNow as isBuyNow1_, bids1_.am ount as amount1_, bids1_.datetime as datetime1_, bids1_.bidder as bidder1_, bids 1_.item as item1_, user2_.userName as userName2_, user2_.`password` as y3_2_, us er2_.email ...

77. Database read issue with MySQL    forum.hibernate.org

78. Authorization with Resin and MySQL.    forum.hibernate.org

Hi I have a problem whereby Hibernate will not authorize with MySQL. I have JNDI connection defined in Resin 3.0.9 as follows: jdbc/ssweb jdbc:mysql://127.0.0.1:3306/ssweb testuser password 8 20 30s I am using Hibernate version 2.1.7 and have defined the session factory as follows: java:comp/env/jdbc/ssweb true net.sf.hibernate.dialect.MySQLDialect I ...

79. MySQL 'in elements' not working    forum.hibernate.org

How to make this HQL work between different databases? It works in MSSQL, but it doesn't in MySQL. Query: "select u" + " from User u, Role r" + " where u.username = ?" + " and u.password = ?" + " and r.rolename = ?" + " and r in elements(u.roles)", new String[]{username, password, role}); Thanx, Ales ----------------------------------- Hibernate version: ...

80. Multiple MySQL databases on the same server    forum.hibernate.org

I have multiple mysql databases running on the same MySQL server. So for example I have databases A, B, and C. In MySQL you can specify a database name as part of a table (regardless of which MySQL database you're connected to) to do cross-database operations. So I could do the following: mysql -uuser C <-- connects to database C select ...

81. Newbie: Introductory example "eg fails using MySQL 4.1    forum.hibernate.org

Hibernate gurus, I have just recently downloaded and extracted hibernate-2.1.7c.zip and have attempted to follow the "roadmap" directions located at http://www.hibernate.org/152.html - "Getting Started". I have tried the "roadmap" using both McKoi1.0.3 and now MySQL4.1 and neither has completed successfully out of the box. From what I can tell from the generated SQL listed below, there is a trailing "limit ?" ...

82. Tackling existing multi-database MySQL layout with hibernate    forum.hibernate.org

At my company we have 50+ MySQL databases on one server that have the same schema for the purpose of partitioning data (due to the size of each database). The decision goes back before my time and of course there is a tremendous amount of spaghetti infrastructure (web, batch processing, cron scripts, reporting, etc...) relying upon this arrangement. The data is ...

83. milliseconds information is gone from MySQL    forum.hibernate.org

Hi all, I hope you can help!!! Current set-up: - A table using the TIMESTAMP field. - Usage of hibernate to access the DB and I have defined a field of type java.sql.Timestamp to map my TIMESTAMP column. My object contains the right value (inc. milliseconds), but upon storage, the milleseconds are not being persisted in MySQL. Any idea that can ...

84. UUEncode MySql+Hibernate+Big5 Problem    forum.hibernate.org

Honestly I am not sure if this is the right place to post this question of mine. We are using MYSql compiled with Big5. We had problems inserting images thru our stand-alone application written in C++ so we UUEncode it and saved as Blob. From that stand-alone app we were able to save them and retrieve and display them. Do I ...

85. using hibernate with mysql database-unable to open database    forum.hibernate.org

Hello friends, Hibernate version: 3.0.1 Full stack trace of any exception that occurs: Exception in thread "main" java.lang.ExceptionInInitializerError at hibernate.simple.Storage.openDatabase(Storage.java:298) Name and version of the database you are using: name= simpleperson version= mysql 4.1 Code where mysql settings are set for hibernate: Code: Configuration cfg = new Configuration() .addClass( Person.class ) ...

86. Building the example for MySQL    forum.hibernate.org

Building the example (ant eg) the SQL of SchemaExport fails dramatically when I use the mysql database. The build works fine when I try the example with hsqldb. Is the mysql-jdbc-adaptor not as transparent as I hoped for? I'm I using the wrong version of mysql? Should I try an other database? Greets, Henk-Jan Castermans Extra info: Hibernate version: 3.05 Mysql ...

87. hibernate3 with mysql    forum.hibernate.org

88. Hibernate --> MySQL Unrecoverable Hang Issue    forum.hibernate.org

Hello everyone. I am having an issue which I haven't yet been able to come up with a reason for. Hibernate Version: 3.0.1 MySQL Version: 4.1.12 OS: Windows 2003 Server Standard Edition What is happening is my system will basically attempt to start a transaction, and never return from it. It doesn't throw an error, it doesn't return null, it just ...

89. Hibernate 2.1.8 autoddl MySQL 4.1.11 longvarchar    forum.hibernate.org

Hi, I'm having trouble getting autoddl to generate the below class with Connector/J 3.1.12 (also 3.1.10, 3.1.11):

90. after restart mysql problem occurs...    forum.hibernate.org

91. Hibernate native mySQL problem    forum.hibernate.org

Hello, I am working with OpenSessionInView pattern, to give every request it's own session object. After each request I close the session. I have a complete web application working propely. For the reporting system I use native SQL (MySQL). I get the connection from Hibernate session and execute a query. For generating the report I first run a query that generates ...

92. Hibernate 3.1.2 and MySQL 5.0    forum.hibernate.org

Hi, I just started using Hibernate and I have some issue with the schema it generate for MySQL. Using the latest Hibernate and MySQL 5 on windows, I'm getting an invalid create table statement. The mapping file was generated using the latest Xdoclet. Any help will be appreciated Simon Hibernate 3.1.2

93. no connexion with mySql 4.1.11    forum.hibernate.org

Hi I have a probleme with my webbapp using Hibernate. It has been developped with mysql 4.0.24, C3P0 lib 0.9.0.2, Hibernate2 and it was running globally ... (even if i had problem of connexions after a few days of usage ...). I want to transfer the application on a Debian server xith mysql4.1.11 and every jsp page with hibernate access don't ...

94. Hibernate 3 migration problem with mysql    forum.hibernate.org

Hi, My problem: When the webapp is deployed dbcp creates the connection pool and everything works as expected. After about 12-24 hrs of leaving it running on a test server, i try to access the application again and get an error message that looks like the pool cannot get a connection. Below is the full stack trace: java.sql.SQLException: Communication link failure: ...

95. Hibernate and MySQL Spatial Extensions    forum.hibernate.org

96. Please help me with accessing MySql problem    forum.hibernate.org

Please help me with accessing MySql problem. I want create database first, then write some data,but it doesn't work. i don't know why? i have 3 directory: lib, src,classes. lib contains Mysql driver and hibernate3.jar, src contains Customer.java,Test.java, Customer.hbm.xml. root directory contains hibernate.cfg.xml and build.xml. here is my code. Customer.java public class Customer { private int id; private String username; private ...

97. example hibernate-mysql    forum.hibernate.org

Newbie Joined: Thu May 25, 2006 12:21 pm Posts: 11 Dear jesustoprural Here is a piece of code you can use for hibernate. Step 1: you have to create a class file with the getter and setter of your database table. eg: give below import java.util.Date; public class Customer { private String name; private Date createDate; private Long id; public Long ...

98. Hibernate & MySQL !!!    forum.hibernate.org

Hi Everyone, Recently we changed our tables from MyISAM to InnoDB, we found the foreign keys were not correctly created. I thought this solved the problem. I changed to InnoDB by altering the org.hibernate.dialect.MySQLInnoDBDialect com.mysql.jdbc.Driver from the hibernate.cfg.cml. Now that we need to load the data ASAP the database tables are not accessible. Within the /data directory only one ...

99. Hibernate3 + Mysql5    forum.hibernate.org

Hi i m using Mysql5 .when i m trying run a simple java application with hibernate(Just inserting one record)..its creating the tables( update ) but not inserting the records.But the same time when i use Mysql4.0.26 its creating the table and inserting the records also!!! Plz help me out in this... Thnxin advance

100. StringIndexOutOfBoundsException wih MySql    forum.hibernate.org

Hibernate version: 3.0 Mapping documents: In java the gender type is char. I am not setting any value to this field. When i try to load the object from database i am getting the following error java.lang.StringIndexOutOfBoundsException: String index out of range: 0 Previously It has worked with DB2 database but the problem, when we are migrating ...