Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  Buy Now
  HXTT Cobol v2.1
  HXTT DBF v5.2
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

access memo field with hibernate
2009-07-11 03:35:52.0

I've got a strange problem: when I read an Access table with a simple ResultSet the data from a Memo column is readable:


// Please see Connecting to the Database section of Chapter 2.
// Installation in Development Document
// Please change "demodata" to your database directory
String url = "jdbc:Access:///" + database;

// Please replace with your query statement.
// You should read SQL syntax in HXTT Access Development Document
String sql = "select * from " + this.tablename;

Connection con = DriverManager.getConnection(url, "", "");

Statement stmt = con.createStatement();

ResultSet rs = stmt.executeQuery(sql);

However when I do the same with the HxttAccessDialect and Hibernate the data is unreadable. The specific field of the record only has two different characters in the String, with no match with the original contents in Access.

This is my hibernate mappig (the column is coordinaten)

My hibernate properties are:

Any clue?

Kind regards, Vincent
add: access memo field with hibernate
2009-07-11 03:38:36.0
Again the hibernate mapping (without the xml tags):

class dynamic-update="true" lazy="false" table="C_VIVALDIWEGVAK" dynamic-insert="true" name="com.trafficits.cdms.model.CdmsVivaldiwegvak"
id name="id" column="id"
generator class="assigned"
many-to-one unique="true" name="cdmsWegVak"
column name="idwegvak"
property name="coordinaten" column="coordinaten"
Re:Re:access memo field with hibernate
2009-07-13 12:14:14.0
Did some more investigations. It isn't hibernate related. The simple ResultSet now does the same, but not on all tables with memo fields!

Might this be an incompatibility with Access 2007? My tables are originally Access 2000/2003, but are edited with Access 2007.

Re:Re:Re:access memo field with hibernate
HXTT Support
2009-07-25 02:33:00.0
>Might this be an incompatibility with Access 2007? My tables are originally
>Access 2000/2003, but are edited with Access 2007.
Yeah. MS Access 2007 seems do minor change for LONGVARCHAR type storage. Please download the latest package.
Re:Re:Re:Re:access memo field with hibernate
2009-08-12 13:38:07.0
The patch works better, but for large memo fields (e.g. 326 characters) I still receive the wrong characters.

Re:Re:Re:Re:Re:access memo field with hibernate
HXTT Support
2009-08-13 09:29:05.0
>but for large memo fields
Please download the latest package, which has removed that limitation.

Search Key   Search by Last 50 Questions


Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap