Check for dup mappings in Console Configuration

Description

Using: Hibernate Artifact Generation
Attempting to create POJO files
-Console configuration is selected
-Generate POJO option selected

Error:

Message:
Problem while executing Create SessionFactory(org.hibernate.MappingException: Could not configure datastore from file: C:\J2EE\xxxx\exxxxxxxxxEJB.ejb3\src\com\dygtig\hibernate\Actype.hbm.xml)

Problem appears to be triggered when Console Configuration includes configuration file hibernate.cfg.xml and one or more of the mapping files in hibernate.cfg.xml are also specified in mapping files section of the Console Configuration. The dupplicate mappings seem to cause the problem.

Request a dup mapping check be added. Output a user friendly message if a dup mapping is detected.

Environment

HibernateExt from CVS (05MAY2005).
Eclipse 3.1M6 with Webtools. Generic problem.

Activity

Show:
Paul Baker
May 7, 2005, 8:44 PM
Koen Aers
December 3, 2020, 12:55 PM

Since this issue is more than 10 years old, I will resolve it with 'out of date' resolution. Feel free to reopen it if it is still relevant.

Out of Date

Assignee

Koen Aers

Reporter

Paul Baker

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

Yes, please

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Priority

Minor
Configure