Questions tagged [hbm2ddl]

hibernate utility to manage the creation and/or deployment of database schemas (data definition language)

198 questions
0
votes
1 answer

Hibernate with HSQL - tables are not being created with hbm2ddl

I'm trying to run database tests with HSQLDB (in-memory mode), but hbm2ddl won't create structures. It behaves as if a wrong SQL dialect was used, but the log shows the dialect is correctly set: HCANN000001: Hibernate Commons Annotations…
MaDa
  • 10,511
  • 9
  • 46
  • 84
0
votes
2 answers

How can I turn off the majority of hbm2ddl's output in the console in Ant?

By default, hbm2ddl spits a ton of output to the console when executing the ant task. I'd like to turn this completely off and simply look at the schema file if something has gone wrong. Anyone know how to do that?
Tim Visher
  • 12,786
  • 16
  • 58
  • 66
0
votes
0 answers

avoiding foreign key creation with hbm2ddl

I get a lot of errors when (re)deploying my application when hbm2ddl is trying to drop foreign keys: 12:57:19,981 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 52) HHH000389: Unsuccessful: alter table Input_Locators…
EasterBunnyBugSmasher
  • 1,507
  • 2
  • 15
  • 34
0
votes
1 answer

Determine hbm2ddl value programmatically without triggering schema update

I would like to know the value of the hbm2ddl feature during the runtime of my application. I succeeded to determine that value with the following code: @Autowired private ApplicationContext applicationContext; private getHbm2DdlValue() { …
Jack
  • 2,937
  • 5
  • 34
  • 44
0
votes
1 answer

hibernate.hbm2ddl.auto=update don't work

I have model. there is this part: model was mapped by jpa annotations.Everywhere I use fetchType = EAGER. If I load vacancy from database, I have 2 duplicates status_for_vacancy objects. I use property hbm2ddl.auto = update. If I make new schema…
user2684975
0
votes
1 answer

jboss hibernate envers hbm2ddl (EnversHibernateToolTask) creates audit table for non-audited entities

I'm using jboss envers for the first time and it looks good. It also seems to be easy to use. However I've come across a problem: when I use the built-in ddl generation to create ddl from my annotated classes, it's creating audit tables for all my…
mdarwin
  • 1,684
  • 7
  • 28
  • 72
0
votes
1 answer

Hibernate database is cleared

Hi i want to ask you what value of hibernate.hbm2ddl.auto set. I want to only update schema when they will be changed and adding new tables. if i set to update it doesn't update tables when entity chenges.
Adrian Deja
  • 737
  • 1
  • 9
  • 17
0
votes
1 answer

hbm2ddl : on delete set null issue

I am generating schema using hibernate hbm2ddl feature.. while defining Realtionship between entities, I want to set ON DELETE SET NULL for child class. But hibernate does not allow us to define such constraint annotationally. I want to define this…
0
votes
1 answer

How to set up hbm2ddl to not allow null in certain variables / columns?

I'm on a project with Spring and hibernate, in the debugging phase. There are two entities that have their tables created automatically by hbm2ddl. This mostly works fine, but the schema indicates that all columns, except for the primary id, allow…
Marceau
  • 1,643
  • 4
  • 17
  • 27
0
votes
1 answer

JPA (Hibernate) + Tomcat + two different databases

I have a webapp using JPA provided by Hibernate and Tomcat. I have no DI framework, no Spring, no Guice, no full Java EE app server. I need JPA to connect to two different databases. I connect to the first database like this: EntityManagerFactory…
Lucio Crusca
  • 1,277
  • 3
  • 15
  • 41
0
votes
1 answer

Generic term for hbm2ddl.auto (entity classes to DDL) capability

I would like to know what the generic term is for hibernate's Entity classes to DDL (hbm2ddl) capability. Is it Domain Driven Design or Model Driven Development or something else?
balteo
  • 23,602
  • 63
  • 219
  • 412
0
votes
1 answer

Hibernate hbm2ddl does not create foreign keys on SQLServer 2008

I am trying to generate foreign keys via hibernate hbm2ddl with: hibernate.hbm2ddl.auto=update And using the following mapping: @OneToOne @ForeignKey(name="FK_address_nationality_id") private Nationality country; It creates the table,…
enkor
  • 7,527
  • 3
  • 31
  • 55
0
votes
1 answer

What are the configuration options for the hibernate3-maven-plugin-3.0?

I can't seem to find any documentation on the configuration options for hbm2ddl. Here is what I have in my pom.xml: org.codehaus.mojo
Liam
  • 1,041
  • 2
  • 17
  • 31
0
votes
1 answer

hibernate3:hbm2ddl goal no jdbc connection

I am trying to create the ddl script for my application which uses hibernate-3.4.0.GA. Here is my pom.xml
Raghvendra Singh
  • 1,775
  • 4
  • 26
  • 53
0
votes
1 answer

NHibernate IDataBaseSchema.GetTableMetadata method take a datarow. How can I use this method?

I'm trying to verify a table gets created. I'm using SQLite and NHibernate. new SchemaExport(_configuration) .Execute(true, true, false, _session.Connection, Console.Out); IDataBaseSchema dbMeta = new…
Hcabnettek
  • 12,678
  • 38
  • 124
  • 190
1 2 3
13
14