How to set value size limit in JPA storage service ?
Tom Zeller
tzeller at dragonacea.biz
Mon Aug 11 14:12:49 EDT 2014
How should I set the value size limit when using a JPA storage service ?
I copied the example Spring configuration[1] from the
JPAStorageServiceTest, add added the valueSize property, which is
indeed being set during initialization, but apparently _after_
Hibernate creates the table.
<bean id="shibboleth.StorageService"
class="org.opensaml.storage.impl.JPAStorageService"
...
p:valueSize="2048" />
So, even though the valueSize is "2048", the table is created with varchar(255).
I ask because when storing sessions server-side, i.e. setting
idp.session.StorageService = shibboleth.StorageService, 255 is too
small.
[1] http://svn.shibboleth.net/view/java-opensaml/trunk/opensaml-storage-impl/src/test/resources/org/opensaml/storage/impl/jpa-spring-context.xml?view=markup
More information about the dev
mailing list