Author: thomas.heute(a)jboss.com
Date: 2008-07-23 07:21:10 -0400 (Wed, 23 Jul 2008)
New Revision: 11554
Modified:
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/impl/model/portal/PortalObjectIdUserType.java
branches/JBoss_Portal_Branch_2_7/wsrp/src/resources/portal-wsrp-sar/conf/hibernate/consumer/domain.hbm.xml
Log:
Changes for Sybase support
Modified:
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/impl/model/portal/PortalObjectIdUserType.java
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/impl/model/portal/PortalObjectIdUserType.java 2008-07-23
10:58:09 UTC (rev 11553)
+++
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/impl/model/portal/PortalObjectIdUserType.java 2008-07-23
11:21:10 UTC (rev 11554)
@@ -43,12 +43,12 @@
public Object fromString(String name)
{
- return PortalObjectId.parse(name, PortalObjectPath.LEGACY_FORMAT);
+ return PortalObjectId.parse(name.trim(), PortalObjectPath.LEGACY_FORMAT);
}
public String toString(Object value)
{
- return ((PortalObjectId)value).toString(PortalObjectPath.LEGACY_FORMAT);
+ return ((PortalObjectId)value).toString(PortalObjectPath.LEGACY_FORMAT).trim();
}
public Class returnedClass()
Modified:
branches/JBoss_Portal_Branch_2_7/wsrp/src/resources/portal-wsrp-sar/conf/hibernate/consumer/domain.hbm.xml
===================================================================
---
branches/JBoss_Portal_Branch_2_7/wsrp/src/resources/portal-wsrp-sar/conf/hibernate/consumer/domain.hbm.xml 2008-07-23
10:58:09 UTC (rev 11553)
+++
branches/JBoss_Portal_Branch_2_7/wsrp/src/resources/portal-wsrp-sar/conf/hibernate/consumer/domain.hbm.xml 2008-07-23
11:21:10 UTC (rev 11554)
@@ -77,7 +77,7 @@
<property name="persistentConsumerName"
column="CONSUMER_NAME" type="java.lang.String"
not-null="true"
access="field"/>
<property name="persistentRegistrationHandle"
column="HANDLE" type="java.lang.String" access="field"/>
- <property name="registrationState" column="STATE"
type="binary" length="50000000"/>
+ <property name="registrationState" column="STATE"
type="binary" length="16384"/>
<map name="persistentRegistrationProperties"
cascade="all,delete-orphan" lazy="false" access="field">
<cache usage="@portal.hibernate.cache.usage(a)"/>
<key column="REG_PK" not-null="true"/>