A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Portals and Portlets
Jboss portal server DB customaization query
Joined: Jul 16, 2008
Jul 31, 2008 01:17:00
I was trying out a small program where I add a new column in the existing table (jbp_users) which comes(gets created) with
portal server 2.6.4. and the database is in MS SQL Server2005.
I have created a new property "age" and have changed appropriate files to add this new property.
Files changed to add new property :
identity-ui-config.xml as per the reference document.
Now this newly added property goes to dynamic store (in table jbp_user_prop) and I want this property to get added as a column in the existing table jbp_users. So I tried to change domain.hbm.xml in
But the thing is , If I change domain.hbm.xml
<hibernate-mapping> <class name="org.jboss.portal.identity.db.HibernateUserImpl" table="jbp_users"> <cache usage="read-write"/> <id name="key" column="jbp_uid" type="java.lang.Long"> <generator class="native"> <param name="sequence">user_seq</param> </generator> </id> ........ ......... <!-- Code changed in domain.hbm.xml --> <property name="age" column="jbp_age" type="java.lang.String" update="true" insert="true" unique="false"/> .... ......
I get exceptions saying that there is no getter/setter methods in org.jboss.portal.identity.db.HibernateUserImpl
Can I edit this file present in portal-identity-lib.jar?
What could be the solution??
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Jboss portal server DB customaization query
Foreign Key Constraint Fails
problem saving with foreign key error
Many to Many Mapping: Link table not getting updated
Error reading resource Hibernate
Duplicate collection role mapping
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013