[JBoss-user] [EJB 3.0] - Re: EJB3.0 Read-only entity bean annotation

2006-01-27 Thread ducky427
I think I need to be give specific imformation to how I arrived at the problem. I have a few tables in postgres which I am accessing using entity beans. Some of these tables contain basic information like user names, password etc. The other tables have columns which have id's from these tables a

[JBoss-user] [EJB 3.0] - Re: EJB3.0 Read-only entity bean annotation

2006-01-27 Thread ducky427
This is not what I aiming to do. The annotation: @Column(insertable=false,updatable=false) just prevents inserting & updating of the field. I was looking for a more general solution which prevents for example, the following type of query: SQL statement "SELECT 1 FROM ONLY "public"."name" x WHER

[JBoss-user] [EJB 3.0] - Re: EJB3.0 Read-only entity bean annotation

2006-01-26 Thread ducky427
I just realised that you could use an xml descriptor file for describing the bean. I could put the correct xml in jboss.xml and ejb-jar.xml. But then I encounter another problem. Currently I am also using EJB 2.1 beans and the ejb-jar.xml has the following line: http://java.sun.com/dtd/ejb-jar_

[JBoss-user] [EJB 3.0] - EJB3.0 Read-only entity bean annotation

2006-01-26 Thread ducky427
Hi, I am new to EJB 3.0 and I wanted to know if it is possible to have a EJB3.0 container managed read-only entity bean? I have searched extensively and been unable to find any reference of it. EJB 2.1 does have it but not EJB 3.0. Is the feature yet to be implemented or am I missing out somethi