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
0
votes
0 answers

Ant BuildException org.hibernate.cfg.JDBCBinderException: sqltype is null for Table, when excluding Primary Key while reverse engineering code

I am trying to generate Java entities from tables using hibernate3-maven-plugin and its hbm2java goal. Using reverse engineering (my custom implementation of ReverseEngineeringStrategy) I am having all entities extend a supertype class called…
0
votes
2 answers

hbm2java 3 - can't find Mapping class

I use the plugin below to generate my Entity classes. When I execute command mvn hibernate3:hbm2java I did get this error: There was an error creating the AntRun task.: An Ant BuildException has occured: java.lang.NoClassDefFoundError:…
ciro
  • 771
  • 1
  • 8
  • 30
0
votes
1 answer

How to make sure Maven plugin is executed before classes are compiled?

I have created a Maven project, which contains Java domain classes that are generated from database tables, using hibernate3-maven-plugin. The same project however also contains Dao classes that make use of these generated domain classes. When…
Kjeld
  • 444
  • 4
  • 14
0
votes
1 answer

Generate SQL-scheme and copy it to include to WAR-file: problem with plugins' dependencies

Before running integration tests I need to setup database. This include generating SQL-scheme (based on JPA-annotations), save it to file and copy it with other resources to directory which later will be used for creating war file (which will be…
Slava Semushin
  • 14,904
  • 7
  • 53
  • 69
0
votes
1 answer

Hibernate 3 Maven Plugin -> remove "Generated by Hibernate Tools"

I am Using the hibernate 3 Maven Plugin Version 2.2 to create my Entities of the database. This works great, but i have one problem. My entities contain the Comment : // Generated 07.10.2015 12:46:10 by Hibernate Tools 3.2.2.GA Is there any way to…
0
votes
1 answer

maven-antrun-plugin generating emty ddl file

I would like to generate schema sql script with maven. Here is my persistance file :
Sofiane
  • 908
  • 4
  • 19
  • 45
0
votes
1 answer

How to inject @PersistenceContext in DAO generated by Hibernate3-maven-plugin

I wanna create a Java Application based on Hibernate-3 and Spring Framework. To get the process easy I found hibernate3-maven-plugin that is able to perform reverse-engineering of the existing database. Here there's example of POM:
Mitrakov Artem
  • 1,355
  • 2
  • 14
  • 22
0
votes
1 answer

Custom hibernate tool exporter

I use the maven plug in to generate pojo and dao : org.codehaus.mojo hibernate3-maven-plugin 2.2 generate-sources
jpprade
  • 3,497
  • 3
  • 45
  • 58
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-maven-plugin hbm2ddl goal ignores sequence definitions and generates default hibernate_sequence instead

I have JPA annotated entity with ID defined as auto-generated property using sequences. But when I am trying to generate DDL with hibernate3-maven-plugin then my defined sequences are not generated, instead hibernate_sequence is…
alebu
  • 420
  • 1
  • 5
  • 15
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
3 answers

Hibernate: how do I code the mapping for a composite, unique key that isn't the primary key?

I have a file where I'm counting votes. I want to limit each user to a single vote on a given competition. The user can return and change his/her vote, but it would update the choice of competitor in the competition. I can't figure out how to do…
Marvo
  • 17,845
  • 8
  • 50
  • 74
1
2