Filter « Seam « JPA Q&A

1. Can't get Hibernate Filters working

18:05:23,381 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: null 18:05:23,381 ERROR [JDBCExceptionReporter] Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57fe7f:d9c1:482a3aa9:32 status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57fe7f:d9c1:482a3aa9:32 status: ActionStatus.ABORT_ONLY >) 18:05:23,390 ERROR [STDERR] May 13, 2008 6:05:23 PM com.sun.facelets.FaceletViewHandler handleRenderException SEVERE: Error Rendering View[/index.xhtml] javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Cannot open connection at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException( at ...

3. Hibernate filter problem: "No such filter configured"

I'm trying to upgrade from JBoss 4.2.3 to 5.1. At the same time, I'm trying to upgrade from Seam 2.0.2 to 2.2 (yeah, I'm a glutton for punishment). My application is packaged as an ear, with one jar and one war. I think I'm almost there, but have run into a real roadblock.

4. Hibernate Filter really work with seam ???

So do you get any errors with the above configuration? Please post these if you did. I know I was a bit confused when I created my first filter in Seam. The docs don't really cover this well. I also basically followed the tutorial you did and afterwards I typed up a summary of what I did on my seam tips ...

5. Hibernate Filter with IN

Hi, In my project, I have one filter in components.xml. Like this: In my entity class, I put @FilterDef and @Filter. @FilterDef(name="distribuidores", parameters={ @ParamDef(name="codDistribuidor",type="string")}) @Filter(name="distribuidores", condition="actcoddistribuidor in :codDistribuidor") The variable value is setting in Authenticator normally. However, the filter is not setted in my entity query. If I change to condition="actcoddistribuidor = :codDistribuidor" and my variable to simple String, works. What's ...

7. Multitenancy with hibernate filters

@Entity @Table(name = "templateconfigurations") public class TemplateConfiguration extends TenantEntity { ... private List pages = new ArrayList(); @OneToMany(mappedBy = "configuration", fetch = FetchType.EAGER) @Cascade(CascadeType.ALL) public List getPages() { return pages; } } @Entity @Table(name = "templatepages") public class TemplatePage extends TenantEntity { ... private TemplateConfiguration configuration; @ManyToOne @JoinColumn(name = "_configurationId") public TemplateConfiguration getConfiguration() { return configuration; } }

8. Seam enabled hibernate filter problem

9. seam - hibernate filters

10. Hibernate filter problem (Seam app)

Greetings I have a very simple hibernate filter on a my CUSTOMER table. Essentially it filters all inactive customers based on a status flag (Y/N). Filter def: @org.hibernate.annotations.FilterDef( name = "activeAccountFilter", parameters = {@org.hibernate.annotations.ParamDef(name = "activeAccountFlag", type="string")} ) @org.hibernate.annotations.Filter( name = "activeAccountFilter", condition = "STSFLG = 'Y'" ) components.xml ------------------- activeAccountFilter Now there are couple of of Named ...