sybase « Map « JPA Q&A

1. ManyToOne Mapping using play GenericModel

I am trying to connect to an existing Sybase database using Play Framework JPA.

public class Trade extends GenericModel
    @Column(name="SYB_IDENTITY_COL", nullable=false, precision=10)

2. Trouble Mapping a Sybase Money Column

I am trying to map a money column in my hibernate configuration, but am having serious trouble doing so. I haven't touched hibernate in many years, so for the most part you could say I am relatively new to this. I have yet to try a custom type, thinking that there must be a simpler solution for this. I have tried ...

3. One to Many Mapping problem with Sybase

I have written a O/R mapping about a parent table and a child table,but when i delete the records, there's a problem error like this : the xml is: Parent table: Child table: ...

4. mapping problem in hibernate - sybase

Newbie Joined: Tue Feb 22, 2005 3:14 pm Posts: 18 Hi List, I am a newbie to hibernate, I have downloaded the hibernate and I could get the sample app running from my java application (my java application connects to the hsqldb). Basically I am having trouble in connecting my sybase db using hibernate. When I tried to connect sybase from ...

5. Bug: Mapping 'boolean' to Sybase 'bit' does not work

org.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of xxx.index.IndexForPublication.setIndexTypeId at org.hibernate.tuple.PojoComponentTuplizer.setPropertyValues( at org.hibernate.type.ComponentType.setPropertyValues( at org.hibernate.type.ComponentType.resolve( at org.hibernate.engine.TwoPhaseLoad.initializeEntity( at org.hibernate.loader.Loader.initializeEntitiesAndCollections( at org.hibernate.loader.Loader.doQuery( at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections( at org.hibernate.loader.Loader.doList( at org.hibernate.loader.Loader.list( at org.hibernate.loader.criteria.CriteriaLoader.list( at org.hibernate.impl.SessionImpl.list( at org.hibernate.impl.CriteriaImpl.list( at xxx.HbMgr.getAll( at xxx.index.IndexTest.setUp( at junit.framework.TestCase.runBare( at junit.framework.TestResult$1.protect( at junit.framework.TestResult.runProtected( at at at junit.framework.TestSuite.runTest( at at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests( at ...

6. Problem using sybase varbinary to serializable type mapping

I am having problem using hibernate varbinary to serializable column mapping. It is able to store and retrieve the data fine in one session. But if I try to retrieve the existing data from the database table, then it gives org.hibernate.type.SerializationException: Any suggesstions/comments? Following are the details: Hibernate version: 3.0.5 Mapping documents:

7. Mapping java byte[] to sybase IMAGE type

Hello, I have a system using hibernate-3.2+entity-mgr+annotations that works with Oracle, PostgreSQL, MySQL5, SQLServer. I want it to also work with Sybase. But the Sybase IMAGE column type is giving me a problem. I am mapping a java byte[] field to the appropriate database types -- such as oracle's LONGRAW -- without problems. However, since this field is used to store ...

9. Error mapping Sybase column type: money