update « Schema « JPA Q&A





1. How to update a database schema without losing your data with Hibernate?    stackoverflow.com

Imagine you are developing a Java EE app using Hibernate and JBoss. You have a running server that has some important data on it. You release the next version of the ...

2. hibernate insert data on schema update    stackoverflow.com

I would like to insert some test data while I start my application after schema update. Can this be done automaticly with some hibernate tools? Or do I have to always ...

3. How to avoid using hibernate schema update    stackoverflow.com

I use Hibernate in my day-to-day programming tasks and I find it very good. In particular I love the way it manages schema updates while developing, saving me from a lot ...

4. Hibernate to update table schema    stackoverflow.com

I am using hibernate 3.*. I want to update table's one column length from 255 to 512. Table has data already. I have tried "hbm2ddl.auto=update" but I gives me error like : ...

5. How to get automatic SCHEMA UPDATE on an existing DB with JPA/Hibernate?    stackoverflow.com

I am trying to update my existing DB schema automatically with JPA-based app (I am using Hibernate as a Persistence provider). What I did is that I have positioned my hbm2dll ...

6. Hibernate Mapping update before schema generation    forum.hibernate.org

Hi all, I have a mapping which works well with my h2 embeded db and I want to make it running on Sybase. The problem I encounter is that type="text" is not well supported in Sybase as it can't contain null values. This is a known problem and you probably did a fix available in 3.5.0-Beta-2. http://opensource.atlassian.com/project ... e/HHH-3975 My problem ...

7. Turn off automatic schema update fails    forum.hibernate.org

Hello, I use automatic DB creation on development with in persistence.xml and I used to simply remove the property and restart the application server when I didn't need recreation of the db. This worked fine for a while. However, after a recent small DB change, I recreated the DB with the same property, but I don't manage to ...

8. could not complete schema update    forum.hibernate.org

Hi Following are the details I am using two databases, each Database has its own sessionfactories Hibernate version is hibernate3 Oracle Version is 10g Relase2 When I start the websphere applicaiton server then the following error is writting in the application server log. After this error also my Applicaiton is working fine. How to avoide this error please he me out ...

9. Update schema question    forum.hibernate.org

I'm using Hibernate to maintain databases with dynamic structure. I'm using SchemaUpdate class to keep mapping files and db tables synchronized. Mapping file is a source, so I want DB schema to be same as its description in .hbm.xml file. Problem is followed. When I REMOVE one property from mapping file, schema updator does not delete this column in database. Hibernate ...





10. Updating a Schema    forum.hibernate.org

Hello, I am doing an internship and I have to develop an application that will work with most RDBMS supported by Hibernate. Hence, it is more than likely than I am going to use Hibernate. However, as my future application will be composed of one "Main Module" and several optional modules (that will be developped later), I will have to change ...

11. Schema update problem    forum.hibernate.org

I'm testing SchemaUpdate without success. Perhaps I'm doing something wrong, but the test case is rather simple: I use the Play / Team example and successfully creates the database using SchemaExport. Then I change one column name from salary to salari (just to test). The following happends (on Sybase, using jConnect 5.5): INFO: processing foreign key constraints alter table Player add ...

12. how to turn off schema update    forum.hibernate.org

13. What is the correct way to update schema with new release?    forum.hibernate.org

What is the correct pattern to update schema with new application release? If I release first application release, it is ok to generate the schema using schema export. But what if I in the next application release: - add new fields and tables - remove some fields or tables and move the contained data elsewhere - rename some fields What is ...

14. Schema update problem    forum.hibernate.org

Hi all, We are using Hibernate 3.0.5 in an ongoing project. Our backend database is Oracle 9i (9.2) hosted on a RedHat Linux machine. The other day a developer found out that a not-null column is accepting null values with no problem. However in the Hibernate hbm file the column is defined as being not-null. It's possible when the schema was ...

15. Is it possible to update a table in another schema?    forum.hibernate.org

Technically : no problem. You just have to declare a SessionFactory object for each database. Then just get a session of the right SessionFactory to apply your request, and you're done. The only thing is : I think that if you want to do a transaction including insertion in one schema, then another, it's called a two phase commit and I ...

16. Schema update fails when using an XADataSource    forum.hibernate.org

Regular Joined: Fri Jan 20, 2006 9:38 am Posts: 61 Location: Notts, UK Using JBoss to manage the connections, my DataSource definition looks like this: Code: CoreDS jdbc:mysql://localhost:3306/core ...





17. Schema Changes, Updating Database    forum.hibernate.org

What is the best practice for migrating a database to support a change to schema? For example, an application is deployed with a Hibernate version of A; where the database managed by Hibernate is also, implicitly so, version A, too. Changes are made to the schema requiring a new version of the application be deployed. Now existing installs of older versions ...