1. Hibernate, simple dependency injection on user type stackoverflow.comFollowing on from a question on unit testing my POJO:
|
2. Exception in Hibernate: could not insert: [test.User#32] forum.hibernate.orgHi, I have an issue with saving data to a postgresql database via hibernate, for which I get the above mentioned exception. Can anybody shine any light on this issue please? 1. Table schema. CREATE TABLE "users" ( "Name" character varying(40), "Password" character varying(20), "EmailAddress" character varying(40), "Lastlogon" date, "logonID" integer NOT NULL DEFAULT nextval('seq_id_mytable'::text), CONSTRAINT "users_pkey" PRIMARY KEY ("logonID") ) ... |
3. Exception in Hibernate: could not insert: [test.User#63] forum.hibernate.orgI am running hibente from within cocoon and postgresql. The above error message section, [test.User#63], increments by 1 everytime I refresh the browser, i.e a call is made to the table, a key(sequence) is obtained but nothing is written to the database. Can anybody tell me what I am not doing correctly? My code s so: 1. persist class (snippet) - ... |
4. Exception in Hibernate: could not insert: [test.User#63] forum.hibernate.orgI am running hibente from within cocoon and postgresql. The above error message section, [test.User#63], increments by 1 everytime I refresh the browser, i.e a call is made to the table, a key(sequence) is obtained but nothing is written to the database. Can anybody tell me what I am not doing correctly? My code s so: 1. persist class (snippet) - ... |