On Tue, Apr 13, 2010 at 2:42 PM, Patrik Nordwall <patrik.nordw...@gmail.com> wrote: > > We have model type Clob which results in java.sql.Clob. I don't know who did > that, wasn't it you? :-) Yes but it was for hibernate only in previous release. JPA introduced this Lob annotation and Hibernate JPA do it little bit strange and some database systems with hibernate even more strange. For example Java BLOB should be stored to database bytearray but Java bytearray shouldn't be stored to database BLOB because database blob doesn't allow random access. Maybe some other JPA implementations like EclipseLink have other special rules. However we should generate standard code (means Lob annotation) and expect correct behavior. We can improve later when problems come.
> I will add StringClob as described above. That is part of problem. I'm not sure if all mapping frameworks (e.g. EclipseLink) support this conversion and which type should be used in database (for example PostgreSQL allow more types with different performance penalty). > In GAE it can be maybe be a com.google.appengine.api.datastore.Text Who will test possible mappings through all frameworks (JPA hibernate, EclipseLink, GAE) with different databases (Oracle, PosgreSQL, MySQL, ...)? Dirty work. Pavel ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Fornax-developer mailing list Fornax-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fornax-developer