schemaexport « Schema « JPA Q&A

1. hibernate SchemaExport help

I'm moving an app off of a self done persistance layer to hibernate. I have the POJO's created, a class.hbm.xml file for each of my classes, and a hibernate.cfg.xml file with all the properties and mappings in it. I am trying to run the SchemaExport tool, but am having no luck at all. I have tried from the comand line C:\>java ...

2. Creating a SchemaExport for MS Access: problems

Hi all, I'm trying to export a HSQL database to an MS Access database from scratch. Since I can't create the MDB file from scratch, I copy an empty file to the desired location, connect to it. My plan is to go through the records from one DB and replicate them in the other. Up to the connection, everything is fine. ...

3. Where's SchemaExport?

4. Is schemaexport documented somewhere?

5. Is it possible to create a database with

I currently create a database using a SQL script and Ant's task. Is it possible to use Hibernate's task to create a database (not just its tables)? Here's the sample code I found (works to create tables): Code:

6. Problem with SchemaExport

Author Message jpratt Post subject: Problem with SchemaExport Posted: Sun Jan 04, 2004 8:47 pm Beginner Joined: Tue Dec 30, 2003 1:51 pm Posts: 49 Location: Michigan, USA Hello - I am new to hibernate and have been working through the docs and trying things as I go. I have gotten hibernate 2.1 setup with jBoss 3.2.2 as in ...

7. SchemaExport does not pay attention to default schema?

Hi All, I am busily generating some DDL and am finding SchemaExport quite handy. I need to generate several versions of the DDL that differ mostly only by the schema name for the tables. I have multiple config files that use the 'hibernate.default_schema' property and it all seems to work when I configure my various SessionFactory objects in code, but when ...

8. SchemaExport, what directory?

10. changing schemaexport default

11. NamingStrategy and SchemaExport?

12. SchemaExport

13. Problem in schemaExport

Read the rules before posting! ... AskForHelp Hi, am getting the following error while doing an schemaexport. Here are my part of my code : /** * Get a set of parameters for this Application * @hibernate.set * inverse = "true" * order-by = "application_id" * @hibernate.collection-one-to-many * class = "com.gloptv.Parameter" */ public Set getParameters() { return this.parameters; } And ...

14. schemaexport Problems

Author Message tezem Post subject: schemaexport Problems Posted: Tue May 17, 2005 3:15 am Newbie Joined: Sat May 07, 2005 12:16 pm Posts: 3 I try to get my db schema exported but I get: Quote: BUILD FAILED: /home/tezem/workspace/ExamProj/src/build.xml:49: Schema text failed: net.sf.hibernate.MappingException: persistent class [core.Answer] not found Everything I tried was not working. Here you get my build.xml: ...

15. SchemaExport

Hello all! I try to get database schema by using hibernate SchemaExport class at runtime. I have following questions about this. 1. I need a constraint in my table " CONSTRAINT `FK_CODES_CREATED_BY` FOREIGN KEY (`CREATED_BY`) REFERENCES `users` (`USER_ID`) ON DELETE SET NULL ON UPDATE CASCADE," Is there any way to explain hibernate "ON DELETE" and "ON UPDATE" statements. I found only ...

16. SchemaExport not formatting properly in 3.1rc3

17. schemaexport problem

Newbie Joined: Thu Nov 23, 2006 1:46 am Posts: 8 Location: Brussels Hey Can someone help me with this error i'm trying to create the tables using ANT schemaexport here are the details Hibernate version:3.1 Mapping documents: Event.hbm.xml Code:

18. help! about schemaexport @hibernate3.2.5

environment: hibernate:3.2.5 _____________________________ ant:1.6 _______________________________ java: java version "1.6.0" Java(TM) SE Runtime Environment (build 1.6.0-b105) Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode) ________________________________________________________ Example used is the tutorial in hibernate3.2.5 package. _________________________________________________________ problem: BUILD FAILED E:\hibernate-3.2\doc\tutorial\build.xml:67: Schema text failed: Could not parse mapping document from file E:\hibernate-3.2\doc\tutorial\bin\events\Event.class at org.hibernate.tool.hbm2ddl.SchemaExportTask.execute(SchemaExportTask. java:151) at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces ...

19. SchemaExport breaks TableHiLoGenerator

20. ordinal position in schemaExport

Is there any possibility to influence the indices of the table columns while generating the table via Hibernate? Because of a layout error by my university I need to create a table with the fields e.g. A-B-C and not A-C-B. I want to code it in the annotations mapping. I found that the index is called ordinal position in a mySQL ...