[hibernate-issues] [Hibernate-JIRA] Commented: (HBX-1013) Hibernate giving a field (with maximum 3 characters) with lot of spaces appended to it

Deepesh Seetharaman (JIRA) noreply at atlassian.com
Wed Oct 22 11:37:06 EDT 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/HBX-1013?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31500#action_31500 ] 

Deepesh Seetharaman commented on HBX-1013:
------------------------------------------

Nobody is assigned for this issue. Can some one look into this or please close this issue
if it does not exist.

I also have doubts about oracle driver, might be broken

> Hibernate giving a field (with maximum 3 characters) with lot of spaces appended to it
> --------------------------------------------------------------------------------------
>
>                 Key: HBX-1013
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-1013
>             Project: Hibernate Tools
>          Issue Type: Bug
>    Affects Versions: 3.2.cr1
>         Environment: Hibernate 3.2.0.cr4, Oracle 9i
>            Reporter: Deepesh Seetharaman
>
> Please refer the table structure and the hbm.xml file's content below
> Problem: Tempo_id is supposed to be of max-lenght 3, but hibernate gives a String with 3 characters and plenty of space appended. eg : "SLW        "
> CREATE TABLE EDECO_TEMPO
> (
>   TEMPO_ID    CHAR(3 CHAR)                      NOT NULL,
>   TEMPO_NAME  VARCHAR2(40 CHAR)                 NOT NULL,
>   BPMRANGE    VARCHAR2(40 CHAR),
>   TEMPO_DESC  VARCHAR2(2000 CHAR)
> )
> <?xml version="1.0"?>
> <!DOCTYPE hibernate-mapping PUBLIC
> 	"-//Hibernate/Hibernate Mapping DTD//EN"
> 	"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
> <hibernate-mapping package="com.wcm.edeco.assetdetails.vo">
> 	<class
> 		name="EdecoTempo"
> 		table="EDECO_TEMPO"
> 	
> 	>
> 		<meta attribute="sync-DAO">false</meta>
> 		<id
> 			name="tempoId"
> 			column="TEMPO_ID"
> 			type="java.lang.String"
> 			length="3"
> 		>
>         <generator class="assigned">
>             </generator>
>        </id>
> 		<property
> 			name="tempoName"
> 			column="TEMPO_NAME"
> 			type="java.lang.String"
> 			not-null="false"
> 			length="40"
> 		/>
> 		<property
> 			name="bpmrange"
> 			column="BPMRANGE"
> 			type="java.lang.String"
> 			not-null="false"
> 			length="40"
> 		/>
> 		<property
> 			name="tempoDesc"
> 			column="TEMPO_DESC"
> 			type="java.lang.String"
> 			not-null="false"
> 		/>
> 	</class>	
> </hibernate-mapping>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list