[JBoss Seam] - Re: Problem with: seam-gen deploy
by pete007
Okay, thank you, I fixed the problem by a nasty workaround, but I will take a look at it when I find some time and report if I succeeded.
NASTY WORKAROUND:
- create three SQL-tables nodex, nodey, nodez
- change the foreignkey constraints to point to this tables
- run seam-gen
- change foreign keys to point to original intended table node
- change annotated tablename to "node" in classes Nodex, Nodey, Nodez
I know, that this isn't a good solution because the Cache is filled with three instances for every database-row, and you can get inconsistencies when editing the Nodexzy-classes, but I only use them for assigning the links between routings and nodes, so only the routings get changed.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126897#4126897
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126897
18 years, 2 months
[JBoss Seam] - Re: Problem implementing filters
by vicky123
I added auto-create in components.xml but it didn't work.
<core:managed-persistence-context
| name="filteredEntityManager"
| auto-create="true"
| persistence-unit-jndi-name="java:/pEntityManagerFactory">
| <core:filters>
| <value>#{companyFilter}</value>
| </core:filters>
| </core:managed-persistence-context>
Then i added create=true
@In(create=true)
| protected EntityManager filteredEntityManager;
|
Exception was same in both the cases.
I am wondering if this error in eclipse is causing the problem?
cvc-complex-type.2.4.c:The matching wild card is strict, but no declaration can be found for element 'code:filter'
|
cvc-complex-type.2.4.c:The matching wild card is strict, but no declaration can be found for element 'core:managed-persistence-context'
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126896#4126896
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126896
18 years, 2 months
[JBossCache] - Region based cachine (JBoss Cache + Hibernate)
by narendrakg
Hi,
I am using JBoss cache as 2nd level cache in Hibernate.
But I am trying to use region based caching, so that cache regions of different tables refresh in different time intervals.
I have configured my settings as per below but cache is refreshing based on default region settings i.e. <region name="/_default_">
Am I missing something?
JBoss Cache configuration (region only)
<region name="/SYSTEM_PARAMETER">
| <attribute name="maxNodes">50000</attribute>
| <attribute name="timeToLiveSeconds">7200</attribute>
| <attribute name="maxAgeSeconds">7200</attribute>
| </region>
HIbernate configuration (hbm file)
<hibernate-mapping package="com.shkco.nwte.common.datamodel">
| <class name="SystemParameter" table="SYSTEM_PARAMETER">
| <cache usage="read-only"/>
| ..
| </class>
| </hibernate-mapping>
Java Code
query.setCacheable(true);
| query..setCacheRegion("SYSTEM_PARAMETER");
|
| where query if of type "org.hibernate.Query"
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4126890#4126890
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4126890
18 years, 2 months