|
From: SourceForge.net <no...@so...> - 2012-12-04 06:32:18
|
Feature Requests item #3592360, was opened at 2012-12-03 22:32 Message generated for change (Tracker Item Submitted) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=449494&aid=3592360&group_id=47439 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Yannick () Assigned to: Nobody/Anonymous (nobody) Summary: Accept column names including the character # Initial Comment: Hello all, We've come across an old legacy database where some of the columns are named for instance EDL#DTTRS or ESO#NMDBT. We are using Hibernate as an ORM. We have created DAOs for our entities and created integration tests connecting directly to the "real" test database which worked fine. When I tried to create a unit test for my DAO with a local in memory (HSQLDB) database, using the @DataSet of Unitils (and my custom DataSetFactory using the XmlDataSet instead of the FlatXmlDataSet), I got the "table not found" error for my entities that had columns with the # sign in them. After some debugging, I found out that the initialize method of the DatabaseDataSet class find all the tables defined in my entities, but the only 2 that have those kinds of column names. Could it be possible for you guys to do something about this? Using latest version of everything (Hibernate 4.1.7.Final, DBUnit 2.4.9, JUnit 4.10). Thanks a bunch in advance ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=449494&aid=3592360&group_id=47439 |