STRUTS2HIBERNATE2 ONE TO ONE ANNOTAION MAPPING
<div dir="ltr" style="text-align: left;" trbidi="on"> 1.postgres sql query create database as student -- Table: result -- DROP TABLE result; CREATE TABLE result ( resultid bigserial NOT NULL, semester character varying(250) NOT NULL, mark character varying(250) NOT NULL, CONSTRAINT resultid PRIMARY KEY (resultid ) ) WITH ( OIDS=FALSE ); ALTER TABLE result OWNER TO postgres; -- Table: studentdetails -- DROP TABLE studentdetails; CREATE TABLE studentdetails ( studentid bigserial NOT NULL, studentname character varying(250) NOT NULL, studentgender character varying(250) NOT NULL, studentclass character varying(250) NOT NULL, studentdivision character varying(250) NOT NULL, result_student_id integer, CONSTRAINT studentid PRIMARY KEY (studentid ) ) WITH ( OIDS=FALSE ); ALTER TABLE studentdetails OWNER TO postgres; 2.web.xml <web-app> <display-name>Student</display-name> <context-param> <param-name&