Salut, je travaille avec une bd orienté objet , j'ai créer un type chambre

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
create or replace type chambre as object (
id_chambre varchar2(4),
date_debut varchar2(20),
date_fin varchar2(20))
et a partir de ce type j'ai crée une liste de type chambres

Code : Sélectionner tout - Visualiser dans une fenêtre à part
create or replace type chambres as table of chambre ;
et aprés j'ai creé table hotel qui va contenir la liste des chambres
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
 
  CREATE TABLE "HOTEL"."HOTEL" 
   (	"ID_HOTEL" VARCHAR2(4 BYTE), 
	"NOM_HOTEL" VARCHAR2(20 BYTE), 
	"CHAMBRE_DISP" "HOTEL"."CHAMBRES" , 
	 CONSTRAINT "PK_HOTEL" PRIMARY KEY ("ID_HOTEL") ENABLE
   ) 
 NESTED TABLE "CHAMBRE_DISP" STORE AS "TAB_HOT"
j'ai travailler avec hibernate pour mapper ma table hotel
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
 
 
import java.io.Serializable;
 
/**
 * Hotel generated by hbm2java
 */
public class Hotel implements java.io.Serializable {
 
	private String idHotel;
	private String nomHotel;
	private Serializable chambreDisp;
 
 
	public Hotel() {
	}
 
	public Hotel(String idHotel) {
		this.idHotel = idHotel;
	}
 
	public Hotel(String idHotel, String nomHotel, Serializable chambreDisp) {
		this.idHotel = idHotel;
		this.nomHotel = nomHotel;
		this.chambreDisp = chambreDisp;
	}
 
	public String getIdHotel() {
		return this.idHotel;
	}
 
	public void setIdHotel(String idHotel) {
		this.idHotel = idHotel;
	}
 
	public String getNomHotel() {
		return this.nomHotel;
	}
 
	public void setNomHotel(String nomHotel) {
		this.nomHotel = nomHotel;
	}
 
	public Serializable getChambreDisp() {
		return this.chambreDisp;
	}
 
	public void setChambreDisp(Serializable chambreDisp) {
		this.chambreDisp = chambreDisp;
	}
 
}
le champ chambredisp est de type serializable, comment je peux créer mes méthodes CRUD avec ce type de mappage . et merci