-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Informix and Annotations
PostPosted: Thu May 07, 2009 11:17 am 
Newbie

Joined: Thu May 07, 2009 9:06 am
Posts: 1
Hi there,

i'm getting error messages while trying to access an informix by annotations.
informix version is 11.5, hibernate 3.x (latest included in seam 2.1).

can anybody send a - working - annotations class sample? my class looks like:
Code:
....
@Entity
@Table(name = "column_name", schema = "informix", catalog = "myCatalogName", uniqueConstraints = @UniqueConstraint(columnNames = "myUniqueColumn_nr"))
public class ClassName implements java.io.Serializable {
.....


Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE datasources
    PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"
    "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd">
<datasources> 
   <local-tx-datasource>
      <jndi-name>informixAppDatasource</jndi-name>
      <connection-url>jdbc:informix-sqli://server:20006/dbName:INFORMIXSERVER=servernameonnet</connection-url>
      <driver-class>com.informix.jdbc.IfxDriver</driver-class>
      <user-name>usr</user-name>
      <password>passwd</password>
   </local-tx-datasource>
    </datasources>


taken from stack trace

Code:
Caused by: org.hibernate.hql.ast.QuerySyntaxException: MyClassName is not mapped....


thanks a lot


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.