[jboss-user] [EJB 3.0] - List of enum types is possible?

2006-09-14 Thread Ajaleo
Hi all! I'd like to know if it's possible to have an entity with a field that is a list of a enumeration type. I've been using entities with enumerated fields but all of theme has a multiplicity of one. When I try to deploy I get this error: | Reason: org.hibernate.MappingException: Could

[jboss-user] [EJB 3.0] - Detach entities - Obtaining a clear pojo

2006-08-28 Thread Ajaleo
Hi all! I have a question related with detaching entities. With the new specification is possible to send an entity bean to upper layers. However, the class of the entity obtained by the EntityManager is a class that extend of the pojo class. Then, is needed to have additional jars in the clien

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Hibernate logging facilities

2006-08-08 Thread Ajaleo
Hi all! I'm using EJB 3.0 with hibernate and I'd like to log all the SQL queries that are performed by Hibernate. I've changed the log4j.xml to get the queries with the following code | | | | | | | | | | | | |

[jboss-user] [EJB 3.0] - org.jboss.ejb3.ProxyFactoryHelper log improvement

2006-08-07 Thread Ajaleo
Hi! I've been getting the following error message in my deploy (EJB 3.0 RC8) "bean class has no local, webservice, or remote interfaces defined and does not implement at least one business interface" (Line 105) This message is thrown by org.jboss.ejb3.ProxyFactoryHelper and isn't very informat

[jboss-user] [EJB 3.0] - Re: How to implement Pagination in JBoss using Entity beans

2006-08-04 Thread Ajaleo
Hi! I'd use the methods setFirstResult and setMaxResults of the Query interface to implement the paginations. In the specification document related with Java Persistence API i'm reading is in the section 3.5.1. bye View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopi

[jboss-user] [EJB 3.0] - Re: Compound primary key with cmr

2006-08-02 Thread Ajaleo
Thanks, this is a excerpt of the code: Class Person: | @Entity | public class Persona implements Serializable { | | @EmbeddedId | private PersonaPK pK; | | @Transient | private Pais pais; | | private String nombre; | | private String

[jboss-user] [EJB 3.0] - Compound primary key with cmr

2006-07-27 Thread Ajaleo
hi all! I'd like to know how I can create a entity with has a compound primary key which fields that are cmrs too. I've been googling and searching this forum but I haven't found how. I've create the Entity with the X cmrs and an @Id public Long id and a SessionBean to ensure that there isn't