[hibernate-issues] [Hibernate-JIRA] Closed: (HBX-569) ReverseEngineeringStrategy doesn't observe destination package
Max Rydahl Andersen (JIRA)
noreply at atlassian.com
Fri Sep 15 07:50:24 EDT 2006
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-569?page=all ]
Max Rydahl Andersen closed HBX-569:
-----------------------------------
Fix Version: 3.2beta7
Resolution: Fixed
strategies now get those settings via ReverseEngineeringSettings
> ReverseEngineeringStrategy doesn't observe destination package
> --------------------------------------------------------------
>
> Key: HBX-569
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-569
> Project: Hibernate Tools
> Type: Bug
> Components: reverse-engineer
> Versions: 3.1beta4
> Environment: Eclipse 3.1.2, JDK 1.5.0_01, SQL Server 2005, JTDS JDBC Driver
> Reporter: Matt Read
> Priority: Minor
> Fix For: 3.2beta7
>
>
> I have successfully used the Hibernate Code Generation part of the plugin to generate .hbm.xml files and POJO Java classes from my JDBC Connection. The code generation configuration has a target package name of com.matt.
> I then implemented a ReverseEngineering Strategy as shown below. The destination package is ignored and both .java and .hbm.xml files are put in the directory specified as "output directory".
> Should I be explicitly coding the package name into my ReverseEngineeringStrategy implementation or is their a utility to allow me to access the target package setting?
> public class InsuranceLedgerStrategy extends DelegatingReverseEngineeringStrategy {
> public InsuranceLedgerStrategy(ReverseEngineeringStrategy delegate) {
> super(delegate);
> }
> public String tableToClassName(TableIdentifier table) {
>
> return table.getName().substring(3);
>
> }
> }
> Thanks,
> Matt.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list