Questions tagged [hibernate3-maven-plugin]

This plugin provides easy integration with Hibernate 3.x in Maven Projects.

Official site : http://mojo.codehaus.org/maven-hibernate3/hibernate3-maven-plugin/

Goals Overview

The Maven Hibernate3 Plugin has seven goals.

  • hibernate3:hbm2cfgxml: Generates hibernate.cfg.xml
  • hibernate3:hbm2ddl: Generates database schema.
  • hibernate3:hbm2doc: Generates HTML documentation for the database schema.
  • hibernate3:hbm2hbmxml: Generates a set of hbm.xml files
  • hibernate3:hbm2java: Generates Java classes from set of *.hbm.xml files
  • hibernate3:hbmtemplate: Renders arbitrary templates against Hibernate Mapping information.
27 questions
10
votes
1 answer

Generate DDL script at MAVEN build with Hibernate4 / JPA 2.1

It seems like the hibernate3-maven-plugin used to generate DDL create/drop scripts is not compatible any more with Hibernate 4.3 and newer versions (using JPA 2.1). I use this plugin configuration :
Donatello
  • 3,486
  • 3
  • 32
  • 38
5
votes
0 answers

Hibernate error: mixing nullable and non nullable properties on hbm2java code

I'm using the hibernate3-maven-plugin to query an Oracle10g database and generate java classes with JPA annotations, using the hbm2java goal. Then I use spring to configure a session factory that scans the annotated code. After a long struggle with…
5
votes
1 answer

NullPointerException when switching from hibernate-maven-plugin version 2.2 to version 3.0

I am updating the versions of my pom.xml dependencies and I've run into a vague error when I change the version of the hibernate3-maven-plugin from
Liam
  • 1,041
  • 2
  • 17
  • 31
3
votes
2 answers

Maven + Spring + Hibernate: hibernate3-maven-plugin hbm2ddl fails for reason "Caused by: java.lang.NullPointerException"

I had to downgrade Hibernate from version 4 to version 3 (3.3.2.GA to be specific), due to current lack of support for Hibernate 4 within Spring, and now the project fails to build when it attempts to generate schema with hbm2ddl. The error is too…
Liam
  • 1,041
  • 2
  • 17
  • 31
2
votes
1 answer

hibernate3-maven-plugin: breaks with updated Hibernate version (3.6.6-FINAL) in dependency

I have successfully used hibernate3-maven-plugin with Hibernate-Core and EntityManager 3.6.6-FINAL, hibernate-commons-annotations-3.2.0.Final, hibernate-jpa-2.0-api-1.0.1.Final and hibernate-validator-4.0.0.GA in recent past. I was generating the…
Anadi Misra
  • 1,925
  • 4
  • 39
  • 68
1
vote
1 answer

hibernate3-maven-plugin not compatible with hibernate4

hibernate3-maven-plugin not compatible with hibernate4, I get the following error while trying to run any goals in that plugin. How do I circumvent this issue? [ERROR] Failed to execute goal org.codehaus.mojo:hibernate3-maven-plugin:2.2:hbm2 ddl…
priya
  • 24,861
  • 26
  • 62
  • 81
1
vote
1 answer

hibernate3-maven: JDBC Driver not found in child project when compiling from parent project

Problem: 12:03:10,126 ERROR org.hibernate.tool.hbm2ddl.SchemaExport - schema export unsuccessful org.hibernate.HibernateException: JDBC Driver class not found: com.mysql.jdbc.Driver I have a project divided into modules: ParentProject and…
Ramps
  • 5,190
  • 1
  • 45
  • 47
1
vote
2 answers

hbm2java failed:Unable to load class declared as

I am implementing generation of the domain/model POJOs from database using the Hibernate3 Maven Plugin. The rationale is to ensure a DBA's updates to the database are automatically mapped to the model layer before a developer starts working on…
Anadi Misra
  • 1,925
  • 4
  • 39
  • 68
1
vote
2 answers

Unable to generate POJO "Hibernate tools reverse engineering using Maven"

I am getting build success but still java files and not generated. I am using hibernate3-maven-plugin 2.2 for generating beans. Database: Postgres 9.6 My pom.xml
manish
  • 944
  • 2
  • 14
  • 27
1
vote
1 answer

Support for @ElementCollection in hibernate tools hbm2ddl

I am trying to use the jpa2 feature @ElementCollection for a List of Strings in my Entity. I am using the hibernate3-maven-plugin to carry out the hbm2ddl task. However it seems the version of hibernate tools used by the plugin does not know how to…
Paul Whelan
  • 16,574
  • 12
  • 50
  • 83
1
vote
1 answer

Hibernate3-Maven-Plugin Exclude Generated Files

I have a class or two that shouldn't be generated on the mapping process. Is there a way that I can specify the individual classes not to generate in the hbm2java Goal? I have the plugin configuration as…
monksy
  • 14,156
  • 17
  • 75
  • 124
1
vote
1 answer

Hibernate3 Maven Plugin ERROR: Could not create or find "MyReverseStrategy.java" with one argument delegate constructor?

I am using Hibernate3 Maven Plugin to reverse engineering, this is a part of my pom.xml org.codehaus.mojo hibernate3-maven-plugin 2.2
1
vote
1 answer

hibernate3-maven-plugin generates java.lang.ClassNotFoundException: org.hibernate.util.ReflectHelper

I am trying to generate a schema (ddl) from my orm.xml file. I'm using hibernate3-maven-plugin. I'm using JPA with hibernate as the implementation, but am open to other implementations or maven plugins. The code in my pom.xml is:
user64141
  • 5,141
  • 4
  • 37
  • 34
1
vote
1 answer

Why does hbm2ddl not like my @Temporal annotation on a GregorianCalendar?

Here is the background: I have an annotated @Embeddable Java class that has a GregorianCalendar field. I am attempting to use hibernate3:hbm2ddl to generate a schema via the hibernate3 Maven plugin so that I can persist another object into which…
skippy
  • 25
  • 9
1
vote
1 answer

Incompatible API error when using org.hibernate.dialect.SQLServer2008Dialect with hibernate3-maven-plugin

I had previously set my project up to use hibernate3-maven-plugin with org.hibernate.dialect.SQLServerDialect as the hibernate.dialect and everything was working fine. But when I changed the dialect to org.hibernate.dialect.SQLServer2005Dialect,…
1
2