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
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to