table « MySQL « JPA Q&A





1. How can I replicate "SHOW TABLES" in Hibernate?    stackoverflow.com

I'm trying to iterate over all of my tables so I can truncate each one (at the beginning of each of my JBehave tests). I thought I would be able to:

List<String> allTables ...

2. Table not created by Hibernate    stackoverflow.com

I annotated a bunch of POJO's so JPA can use them to create tables in Hibernate. It appears that all of the tables are created except one very central table ...

3. hibernate: create table with names in lowercase    stackoverflow.com

Hibernate: I want to have hibernate automatically generate my tables with names in lowercase. For example, if my class is called com.myapp.domain.Customer, hibernate will generate a table named Customer. I want it ...

4. How to create a "facade" table?    stackoverflow.com

A legacy database contains a join table which links tables table1 and table2, and contains just two foreign keys:

TABLE_ORIG:
table1_id
table2_id
In order to utilize this table using JPA I would need to create ...

5. Hibernate, MySQL and table named "Repeat" - strange behaviour    stackoverflow.com

I am having a strange problem. But first the orm.xml:

<entity class="de.test.businessobjects.Repeat">
    <table name="repeat"/>
    <attributes>
        <id name="id">
   ...

6. Problem with a Case of PKEY AND FKEY within the same table    stackoverflow.com

I have a table which has a field ID as a primary key and another field PID as the Foreign Key to the ID Field. Both are of long DataTypes. So this ...

7. hibernate and mysql partitioned tables    forum.hibernate.org

I'm working on a project that uses mysql DB, struts2 and hibernate ORM, we've come to a point where a couple of our tables are too large and need to be partitioned. I'm fairly new to hibernate... I couldn't find any reported problems with hibernate and partitioned tables. What I'm really interested in is can I write the same sort of ...

8. MySQL table structure    forum.hibernate.org

9. Hibernate AND MySQL with four hundred tables    forum.hibernate.org





10. Problem creating table in mysql    forum.hibernate.org

Newbie Joined: Mon May 30, 2005 2:23 am Posts: 7 PROBLEM 1 I want to create mysql tables from java class using hibernate. For that I called the sample method in the class CatTest: public static void create() { String s = "CREATE TABLE ATTACHMENT ATTACHMENT_ID numeric NOT NULL,+" + " DOCUMENT_ID numeric,"+ " ATTACHMEMT_PATH varchar,"+ " ATTACHMENT_SIZE numeric,"+ " CONSTRAINT ...

11. Structure of mySQL table is changed.    forum.hibernate.org

I have two tables in mysql which takes data from two different forms for user registration Table1: user - gets data from registration form 1 Table2: userextrainfo - [foreignkey userid] - gets data from registratoin form 2 I have 1. User.hbm.xml 2. UserExtraInfo.hbm.xml In the User.hbm.xml I have: After entering the data ...

12. Hibernate clears table in mysql database?!    forum.hibernate.org

Hi, I have a very very strange problem, which I cannot almost beleive myself but it looks like hibernate is clearing out my table! I have a table which I insert a row to, and then verify the row by a ordinary select to the table. Ok everything ok. Then I startup my .war application and suddenly the table is empty! ...

13. Hibernate, mysql and table case sensitivity    forum.hibernate.org

Could you confirm the following behavior? Linux OS - redhat MySQL version 5.0.51a settings: InnoDB and lower_case_table_names=1 Hibernate 3.2.4.sp1 I verify that in MySQL command line interface, table creation occurs in lower case no matter the case of the table create statement. But creation with Hibernate will create a table in upper case apparently ignoring the MySQL setting. A bug? Let ...