-->
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.  [ 4 posts ] 
Author Message
 Post subject: about xdoclet + firebird ...
PostPosted: Wed Dec 08, 2004 2:22 am 
Regular
Regular

Joined: Wed Sep 03, 2003 8:04 am
Posts: 55
I want to use SchemeExport to produce a table as below:
Code:
create table project (
  proj_id int not null,
  proj_desc blob(800,1),
  primary key(proj_id)
);


the 'blob(800,1)' means a long string type.

but i really donot know how to use xdoclet to get right project.hbm.xml :(

Code:
package com.zsoft.dos;

import java.sql.Clob;

/**
* @hibernate.class table="project"
*/
public class Project
{
   private Long _id;
   private Clob _desc;

   /**
    * @hibernate.id column="proj_id" ...
    */
   public Long getId() { return _id;}
   public void setId(Long id) {_id = id;}

  /**
   * @hibernate.property column="proj_desc" ... ??????
   */
   public Clob getDesc() { return _desc; }
   pubic void setDesc(Clob desc) {_desc = desc;}
}


any suggestion ?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 08, 2004 8:46 am 
Senior
Senior

Joined: Wed Aug 27, 2003 4:08 am
Posts: 178
Location: Wiesbaden, Germany
@hibenate.property column="blah" sqltype="blob()"

_________________
Got new hibernate xdoclet plugin? http://www.sourceforge.net/projects/xdoclet-plugins/
... Momentan auf der Suche nach neuen Projekt ode Festanstellung....


Top
 Profile  
 
 Post subject: seems not work ...
PostPosted: Thu Dec 09, 2004 3:17 am 
Regular
Regular

Joined: Wed Sep 03, 2003 8:04 am
Posts: 55
i will try after go home. but i feel it has some problem using "blob()" tag ?!

Because BLOD(x,1) corresponds to java.sql.Clob, right ?

_________________
garbage in,garbage out


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 10, 2004 2:12 pm 
Senior
Senior

Joined: Wed Aug 27, 2003 4:08 am
Posts: 178
Location: Wiesbaden, Germany
insqltype you have to specify column type in a form your database likes...

_________________
Got new hibernate xdoclet plugin? http://www.sourceforge.net/projects/xdoclet-plugins/
... Momentan auf der Suche nach neuen Projekt ode Festanstellung....


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

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.