[jboss-user] [JBoss Seam] - Re: Error with SeamGen
Yes, I was correct. The error is caused by Postgres arrays. I think this isse needs to be fixed somehow. At least by skipping fields of non-standard types. Here is the generate class with array: @Entity | @Table(name = "tt", schema = "public", uniqueConstraints = {}) | public class Tt implements java.io.Serializable { | | // Fields | | private long id; | private String name; | private Serializable arr; | | // Constructors | | /** default constructor */ | public Tt() { | } | | /** minimal constructor */ | public Tt(long id) { | this.id = id; | } | /** full constructor */ | public Tt(long id, String name, Serializable arr) { | this.id = id; | this.name = name; | this.arr = arr; | } | | // Property accessors | @Id | @Column(name = "id", unique = true, nullable = false) | @NotNull | public long getId() { | return this.id; | } | | public void setId(long id) { | this.id = id; | } | | @Column(name = "name") | public String getName() { | return this.name; | } | | public void setName(String name) { | this.name = name; | } | | @Column(name = "arr") | public Serializable getArr() { | return this.arr; | } | | public void setArr(Serializable arr) { | this.arr = arr; | } | | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989651#3989651 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989651 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Error with SeamGen
Yes, found a lot of them, but this obe seems to be a root: ObjectName: persistence.units:ear=seam_test.ear,unitName=seam_test | State: FAILED | Reason: org.hibernate.HibernateException: Wrong column type: fields, expected: bytea | I Depend On: | jboss.jca:service=ManagedConnectionFactory,name=seam_testDatasource | Probably it's due to using postgresql. I'll do some checks, but looks like hibernate can't work with some postgres datatypes and seam_gen doesn't inform about it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989609#3989609 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989609 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Error with SeamGen
I bet there are other errors in your startup log. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989489#3989489 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989489 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Error with SeamGen
All code is autogenerated. persistence.xml | | org.hibernate.ejb.HibernatePersistence | java:/seam_testDatasource | | | | | | | | | components.xml | http://jboss.com/products/seam/components-1.1.dtd";> | | | | | true | @jndiPattern@ | | | | | 500 | | 12 | cid | clr | | | | /home.xhtml | | | | java:/seam_testEntityManagerFactory | | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989168#3989168 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989168 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Error with SeamGen
what does persistence.xml look like. What does components.xml look like? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3989002#3989002 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3989002 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user