Check-in [f6e277cd09]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:imagen a paquetes
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA1:f6e277cd091c5cf2e68c0deacd10a50cb8eb3749
User & Date: malcon 2015-01-27 23:05:17
Context
2015-01-27
23:05
imagen a paquetes Leaf check-in: f6e277cd09 user: malcon tags: trunk
22:20
correccion de hector y mi busqueda de nacionales check-in: adf5a04eb7 user: malcon tags: trunk
Changes

Changes to WebContent/WEB-INF/website/crucero.jsp.

42
43
44
45
46
47
48





49
50
51
52
53
54
55
..
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80

81
82
83
84
85
86
87
..
94
95
96
97
98
99
100
101

102
103
104
105

106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
    <!--- LISTADO DE CRUCEROS---->
    <div class="criuse-main">
        <div class="wrap">
            <div class="criuse-head1">
                <h3>Paquetes Cruceros</h3>
            </div>
            <div class="criuse-grids">





                <div class="criuse-grid">
                    <div class="criuse-grid-head">
                        <div class="criuse-img">
                            <div class="criuse-pic">
                               
                                 <img src="<s:url value="/images/s1.jpg" namespace="/"/>" title="criuse-name">
                            </div>
................................................................................
                            <div class="criuse-pic-info">
                                <div class="criuse-pic-info-top">
                                    <div class="criuse-pic-info-top-weather">
                                        <p>33<label>o</label><i>c</i><span> </span></p>
                                    </div>
                                    <div class="criuse-pic-info-top-place-name">
                                        <h2>
                                            <label>Spain</label><span>BARCELONA</span></h2>
                                    </div>
                                </div>
                                <div class="criuse-pic-info-price">
                                    <p>
                                        <span>Starting Form</span>
                                        </p><h4>250 $</h4>
                                    <p></p>
                                </div>
                            </div>
                        </div>
                        <div class="criuse-info">
                            <div class="criuse-info-left">
                                <ul>
                                    <li><a class="c-hotel" href="#"><span></span>8 Noches VIP/ Hotel Cain</a></li>
                                    <li><a class="c-air" href="#"><span></span>Regreso en avión</a></li>
                                    <li><a class="c-fast" href="#"><span></span>Desayuno y Almuerzo</a></li>
                                    <li><a class="c-car" href="#"><span></span>Trasnsporte</a></li>

                                    <div class="clear"></div>
                                </ul>
                            </div>
                            <div class="criuse-info-right">
                                <ul>
                                    <li><a class="c-face" href="#"><span></span></a></li>
                                    <li><a class="c-twit" href="#"><span></span></a></li>
................................................................................
                    </div>
                    <div class="criuse-grid-info">
                        <h1><a href="#">Lorem Ipsum is typesetting industry</a></h1>
                        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>
                        <a class="btn" href="../Client/reserva.html">Detalle</a>
                    </div>
                </div>
                <div class="criuse-grid">

                    <div class="criuse-grid-head">
                        <div class="criuse-img">
                            <div class="criuse-pic">
                               <img src="<s:url value="/images/s1.jpg" namespace="/"/>" title="criuse-name">

                            </div>
                            <div class="criuse-pic-info">
                                <div class="criuse-pic-info-top">
                                    <div class="criuse-pic-info-top-weather">
                                        <p>33<label>o</label><i>c</i><span> </span></p>
                                    </div>
                                    <div class="criuse-pic-info-top-place-name">
                                        <h2>
                                            <label>Spain</label><span>BARCELONA</span></h2>
                                    </div>
                                </div>
                                <div class="criuse-pic-info-price">
                                    <p>
                                        <span>Starting Form</span>
                                        </p><h4>250 $</h4>
                                    <p></p>
                                </div>
                            </div>
                        </div>
                        <div class="criuse-info">
                            <div class="criuse-info-left">
                                <ul>
                                     <li><a class="c-hotel" href="#"><span></span>8 Noches VIP/ Hotel Cain</a></li>
                                    <li><a class="c-air" href="#"><span></span>Regreso en avión</a></li>
                                    <li><a class="c-fast" href="#"><span></span>Desayuno y Almuerzo</a></li>
                                    <li><a class="c-car" href="#"><span></span>Trasnsporte</a></li>
                                    <div class="clear"></div>
                                </ul>
                            </div>
                            <div class="criuse-info-right">
                                <ul>
                                    <li><a class="c-face" href="#"><span></span></a></li>
                                    <li><a class="c-twit" href="#"><span></span></a></li>
                                    <li><a class="c-tub" href="#"><span></span></a></li>
                                    <li><a class="c-pin" href="#"><span></span></a></li>
                                </ul>
                            </div>
                            <div class="clear"></div>
                        </div>
                    </div>
                    <div class="criuse-grid-info">
                        <h1><a href="#">Lorem Ipsum is typesetting industry</a></h1>
                        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>
                        <a class="btn" href="#">Detalles</a>
                    </div>
                </div>
                <div class="criuse-grid">
                    <div class="criuse-grid-head">
                        <div class="criuse-img">
                            <div class="criuse-pic">
                                <img src="<s:url value="/images/s1.jpg" namespace="/"/>" title="criuse-name">
                            </div>
                            <div class="criuse-pic-info">
                                <div class="criuse-pic-info-top">
                                    <div class="criuse-pic-info-top-weather">
                                        <p>33<label>o</label><i>c</i><span> </span></p>
                                    </div>
                                    <div class="criuse-pic-info-top-place-name">
                                        <h2>
                                            <label>Spain</label><span>BARCELONA</span></h2>
                                    </div>
                                </div>
                                <div class="criuse-pic-info-price">
                                    <p>
                                        <span>Starting Form</span>
                                        </p><h4>250 $</h4>
                                    <p></p>
                                </div>
                            </div>
                        </div>
                        <div class="criuse-info">
                            <div class="criuse-info-left">
                                <ul>
                                      <li><a class="c-hotel" href="#"><span></span>8 Noches VIP/ Hotel Cain</a></li>
                                    <li><a class="c-air" href="#"><span></span>Regreso en avión</a></li>
                                    <li><a class="c-fast" href="#"><span></span>Desayuno y Almuerzo</a></li>
                                    <li><a class="c-car" href="#"><span></span>Trasnsporte</a></li>
                                    <div class="clear"></div>
                                </ul>
                            </div>
                            <div class="criuse-info-right">
                                <ul>
                                    <li><a class="c-face" href="#"><span></span></a></li>
                                    <li><a class="c-twit" href="#"><span></span></a></li>
                                    <li><a class="c-tub" href="#"><span></span></a></li>
                                    <li><a class="c-pin" href="#"><span></span></a></li>
                                </ul>
                            </div>
                            <div class="clear"></div>
                        </div>
                    </div>
                    <div class="criuse-grid-info">
                        <h1><a href="#">Lorem Ipsum is typesetting industry</a></h1>
                        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>
                        <a class="btn" href="#">Detalles</a>
                    </div>
                </div>
            </div>

    </div>
        </div>

        


    </div>







>
>
>
>
>







 







|





|







<
<
<
<
>







 







<
>
|
|
<
<
>
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<








42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
..
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81




82
83
84
85
86
87
88
89
..
96
97
98
99
100
101
102

103
104
105


106
107

































































































108
109
110
111
112
113
114
115
    <!--- LISTADO DE CRUCEROS---->
    <div class="criuse-main">
        <div class="wrap">
            <div class="criuse-head1">
                <h3>Paquetes Cruceros</h3>
            </div>
            <div class="criuse-grids">
            
             <s:if test="!paquetes.isEmpty">
            			<s:iterator value="paquetes" status="status">	
            
            
                <div class="criuse-grid">
                    <div class="criuse-grid-head">
                        <div class="criuse-img">
                            <div class="criuse-pic">
                               
                                 <img src="<s:url value="/images/s1.jpg" namespace="/"/>" title="criuse-name">
                            </div>
................................................................................
                            <div class="criuse-pic-info">
                                <div class="criuse-pic-info-top">
                                    <div class="criuse-pic-info-top-weather">
                                        <p>33<label>o</label><i>c</i><span> </span></p>
                                    </div>
                                    <div class="criuse-pic-info-top-place-name">
                                        <h2>
                                            <label></label><span><s:property value="nombre"/></span></h2>
                                    </div>
                                </div>
                                <div class="criuse-pic-info-price">
                                    <p>
                                        <span>Starting Form</span>
                                        </p><h4><s:property value="precio"/></h4>
                                    <p></p>
                                </div>
                            </div>
                        </div>
                        <div class="criuse-info">
                            <div class="criuse-info-left">
                                <ul>




                         
                                    <div class="clear"></div>
                                </ul>
                            </div>
                            <div class="criuse-info-right">
                                <ul>
                                    <li><a class="c-face" href="#"><span></span></a></li>
                                    <li><a class="c-twit" href="#"><span></span></a></li>
................................................................................
                    </div>
                    <div class="criuse-grid-info">
                        <h1><a href="#">Lorem Ipsum is typesetting industry</a></h1>
                        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur</p>
                        <a class="btn" href="../Client/reserva.html">Detalle</a>
                    </div>
                </div>

                
                	</s:iterator>
				</s:if>


                
            </div>


































































































    </div>
        </div>

        


    </div>

Changes to WebContent/WEB-INF/website/internacional.jsp.

44
45
46
47
48
49
50



51
52

53
54
55
56
57
58
59
60
61


62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
    </div>
    <div class="destination-places">
        <div class="wrap">
            <div class="destination-places-head">
                <h3>Paquetes Internacionales</h3>
            </div>
            <div class="destination-places-grids">



                <div class="destination-places-grid" onclick="location.href='#';">
                    <div class="dest-place-pic main_box user_style4" data-hipop="two-horizontal">

                        <img src="<s:url value="/images/d7.jpg" namespace="/"/>" title="place-name">
                        <a href="#" class="popup"></a>
                        <a href="#" class="popup2"></a>
                    </div>
                    <div class="dest-place-opt">
                        <ul class="dest-place-opt-fea">
                            <li><a class="hot" href="#"><span></span>Hotel</a></li>
                            <li><a class="plain" href="#"><span></span>Viaje Áreao</a></li>
                            <li><a class="Breakfast" href="#"><span></span>Almuerzo</a></li>


                            <div class="clear"></div>
                        </ul>
                        <ul class="dest-place-opt-cast">
                            <li><a class="d-place" href="#">Venice</a></li>
                            <li><a class="d-price" href="#">Viaje desde 250$</a></li>
                            <div class="clear"></div>
                        </ul>
                    </div>
                </div>
                <div class="destination-places-grid" onclick="location.href='#';">
                    <div class="dest-place-pic main_box user_style4" data-hipop="two-horizontal">
                         <img src="<s:url value="/images/d6.jpg" namespace="/"/>" title="place-name">
                        <a href="#" class="popup"></a>
                        <a href="#" class="popup2"></a>
                    </div>
                    <div class="dest-place-opt">
                        <ul class="dest-place-opt-fea">
                             <li><a class="hot" href="#"><span></span>Hotel</a></li>
                            <li><a class="plain" href="#"><span></span>Viaje Áreao</a></li>
                            <li><a class="Breakfast" href="#"><span></span>Almuerzo</a></li>
                            <div class="clear"></div>
                        </ul>
                        <ul class="dest-place-opt-cast">
                            <li><a class="d-place" href="#">Venice</a></li>
                            <li><a class="d-price" href="#">Viaje desde 250$</a></li>
                            <div class="clear"></div>
                        </ul>
                    </div>
                </div>
                <div class="destination-places-grid last-d-grid" onclick="location.href='#';">
                    <div class="dest-place-pic main_box user_style4" data-hipop="two-horizontal">
                         <img src="<s:url value="/images/d2.jpg" namespace="/"/>" title="place-name">
                        <a href="#" class="popup"></a>
                        <a href="#" class="popup2"></a>
                    </div>
                    <div class="dest-place-opt">
                        <ul class="dest-place-opt-fea">
                             <li><a class="hot" href="#"><span></span>Hotel</a></li>
                            <li><a class="plain" href="#"><span></span>Viaje Áreao</a></li>
                            <li><a class="Breakfast" href="#"><span></span>Almuerzo</a></li>
                            <div class="clear"></div>
                        </ul>
                        <ul class="dest-place-opt-cast">
                            <li><a class="d-place" href="#">Venice</a></li>
                            <li><a class="d-price" href="#">Viaje desde 250$</a></li>
                            <div class="clear"></div>
                        </ul>
                    </div>
                </div>



                <div class="clear"></div>
            </div>
        </div>
    </div>
    <!-- FIN DEL SLIDER NACIONALES--->
    </div>







>
>
>
|
|
>
|
|
|
|
|
|
<
|
<
>
>
|
|
|
|
|


|
|
<
<
<
<
|
|
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<








44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62

63

64
65
66
67
68
69
70
71
72
73
74




75
76



































77
78
79
80
81
82
83
84
    </div>
    <div class="destination-places">
        <div class="wrap">
            <div class="destination-places-head">
                <h3>Paquetes Internacionales</h3>
            </div>
            <div class="destination-places-grids">
          <s:if test="!paquetes.isEmpty">
            			<s:iterator value="paquetes" status="status">	
            
			                <div class="destination-places-grid" onclick="location.href='#';">
			                    <div class="dest-place-pic main_box user_style4" data-hipop="two-horizontal">
			                      
			                        <img src="<s:url value="/images/" namespace="/"/><s:property value="imagen"/>" title="place-name">
			                        <a href="#" class="popup"></a>
			                        <a href="#" class="popup2"></a>
			                    </div>
			                    <div class="dest-place-opt">
			                        <ul class="dest-place-opt-fea">

			                            <li><a class="plain" href="#"><span></span><s:property value="nombre"/></a></li>

			                                
		                            
			                            <div class="clear"></div>
			                        </ul>
			                        <ul class="dest-place-opt-cast">
                            <li><a class="d-place" href="#">Reservar</a></li>
                            <li><a class="d-price" href="#">Viaje desde <s:property value="precio"/></a></li>
                            <div class="clear"></div>
                        </ul>
			                    </div>
			                </div>




                		</s:iterator>
				</s:if>





































                <div class="clear"></div>
            </div>
        </div>
    </div>
    <!-- FIN DEL SLIDER NACIONALES--->
    </div>

Changes to WebContent/WEB-INF/website/nacional.jsp.

53
54
55
56
57
58
59
60
61
62
63
64
65
66

67
68
69
70
71

72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
            
            	<s:if test="!paquetes.isEmpty">
            			<s:iterator value="paquetes" status="status">	
            
			                <div class="destination-places-grid" onclick="location.href='#';">
			                    <div class="dest-place-pic main_box user_style4" data-hipop="two-horizontal">
			                      
			                        <img src="<s:url value="/images/d7.jpg" namespace="/"/>" title="place-name">
			                        <a href="#" class="popup"></a>
			                        <a href="#" class="popup2"></a>
			                    </div>
			                    <div class="dest-place-opt">
			                        <ul class="dest-place-opt-fea">
			                            <li><a class="plain" href="#"><span></span><s:property value="nombre"/></a></li>

		                            
			                            <div class="clear"></div>
			                        </ul>
			                        <ul class="dest-place-opt-cast">
			                            

			                            <li><button>Reservar</button></li>
			                            <div class="clear"></div>
			                        </ul>
			                    </div>
			                </div>
                		</s:iterator>
				</s:if>
                <div class="clear"></div>
                
                
            </div>
            
        </div>
    </div>
    </div>







|






>




<
>
|
|
|












53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71

72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
            
            	<s:if test="!paquetes.isEmpty">
            			<s:iterator value="paquetes" status="status">	
            
			                <div class="destination-places-grid" onclick="location.href='#';">
			                    <div class="dest-place-pic main_box user_style4" data-hipop="two-horizontal">
			                      
			                        <img src="<s:url value="/images/" namespace="/"/><s:property value="imagen"/>" title="place-name">
			                        <a href="#" class="popup"></a>
			                        <a href="#" class="popup2"></a>
			                    </div>
			                    <div class="dest-place-opt">
			                        <ul class="dest-place-opt-fea">
			                            <li><a class="plain" href="#"><span></span><s:property value="nombre"/></a></li>
			                                
		                            
			                            <div class="clear"></div>
			                        </ul>
			                        <ul class="dest-place-opt-cast">

                            <li><a class="d-place" href="#">Reservar</a></li>
                            <li><a class="d-price" href="#">Viaje desde <s:property value="precio"/></a></li>
                            <div class="clear"></div>
                        </ul>
			                    </div>
			                </div>
                		</s:iterator>
				</s:if>
                <div class="clear"></div>
                
                
            </div>
            
        </div>
    </div>
    </div>

Added WebContent/images/arequipa.jpg.

cannot compute difference between binary files

Added WebContent/images/cuzco.jpg.

cannot compute difference between binary files

Added WebContent/images/espania.jpg.

cannot compute difference between binary files

Added WebContent/images/italia.jpg.

cannot compute difference between binary files

Added WebContent/images/trujillo.jpg.

cannot compute difference between binary files

Changes to src/action/PaqueteAction.java.

62
63
64
65
66
67
68

69
70
71
72
73
74
75

76
77
78
79
80
81
82
		return SUCCESS;
	}
	
	public String buscarInternacional() throws Exception {
		
		 DestinoService destinoNacionalService=new DestinoServiceDAO();
		 destinos=destinoNacionalService.getDestinos("IN");

		return SUCCESS;
	}

	public String buscarCrucero() throws Exception {
	
		 DestinoService destinoNacionalService=new DestinoServiceDAO();
			destinos=destinoNacionalService.getDestinos("CR");

		return SUCCESS;
	}
	
	@Override
	public void prepare() throws Exception {
		// TODO Auto-generated method stub
		paquete = new Paquete();







>







>







62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
		return SUCCESS;
	}
	
	public String buscarInternacional() throws Exception {
		
		 DestinoService destinoNacionalService=new DestinoServiceDAO();
		 destinos=destinoNacionalService.getDestinos("IN");
		 paquetes =paqueteService.buscar(paquete.getDestino().getId());
		return SUCCESS;
	}

	public String buscarCrucero() throws Exception {
	
		 DestinoService destinoNacionalService=new DestinoServiceDAO();
			destinos=destinoNacionalService.getDestinos("CR");
		paquetes =paqueteService.buscar(paquete.getDestino().getId());
		return SUCCESS;
	}
	
	@Override
	public void prepare() throws Exception {
		// TODO Auto-generated method stub
		paquete = new Paquete();

Changes to src/model/Paquete.java.

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
..
82
83
84
85
86
87
88







89
90
91
92
	private String nombre;
	private String descripcion;
	private String itinerario;
	private String tipo_paquete;
	private Float precio;
	private Moneda moneda;
	private Destino destino;

	
	public Paquete() {
	}

	public Paquete(Integer id, String codigo, String nombre,
			String descripcion, String itinerario, String tipo_paquete,
			Float precio, Moneda moneda, Destino destino) {
		super();
		this.id = id;
		this.codigo = codigo;
		this.nombre = nombre;
		this.descripcion = descripcion;
		this.itinerario = itinerario;
		this.tipo_paquete = tipo_paquete;
		this.precio = precio;
		this.moneda = moneda;
		this.destino = destino;

	}
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
................................................................................
	}
	public Destino getDestino() {
		return destino;
	}
	public void setDestino(Destino destino) {
		this.destino = destino;
	}







	
	
	
}







>






|










>







 







>
>
>
>
>
>
>




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
..
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
	private String nombre;
	private String descripcion;
	private String itinerario;
	private String tipo_paquete;
	private Float precio;
	private Moneda moneda;
	private Destino destino;
	private String imagen;
	
	public Paquete() {
	}

	public Paquete(Integer id, String codigo, String nombre,
			String descripcion, String itinerario, String tipo_paquete,
			Float precio, Moneda moneda, Destino destino, String imagen) {
		super();
		this.id = id;
		this.codigo = codigo;
		this.nombre = nombre;
		this.descripcion = descripcion;
		this.itinerario = itinerario;
		this.tipo_paquete = tipo_paquete;
		this.precio = precio;
		this.moneda = moneda;
		this.destino = destino;
		this.imagen = imagen;
	}
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
................................................................................
	}
	public Destino getDestino() {
		return destino;
	}
	public void setDestino(Destino destino) {
		this.destino = destino;
	}
	
	public String getImagen() {
		return imagen;
	}
	public void setImagen(String imagen) {
		this.imagen = imagen;
	}
	
	
	
}

Changes to src/persistencia/mybatis/mapper/PaqueteMapper.xml.

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
     <resultMap type="paquete" id="rmPaqueteBusqueda">
        <id column="id" property="id"/>
		<result column="codigo" property="codigo"/>
        <result column="nombre" property="nombre"/>
        <result column="descripcion" property="descripcion"/>
        <result column="itinerario" property="itinerario"/>
        <result column="precio_base" property="precio"/>

        <association property="moneda" javaType="moneda">
            	<result column = "abrev" property="abrev"/>
        </association>
        <association property="destino" javaType="destino">
            <result column="destino_id" property="id"/>
        </association>   

     </resultMap>
     
    <select id="buscar" resultMap="rmPaqueteBusqueda" parameterType="int">
    	SELECT pa.id, pa.codigo, pa.nombre, pa.descripcion, pa.itinerario,
			pa.precio_base, mo.abrev, pd.destino_id FROM paquete pa
			inner join paquete_has_destino pd on pd.paquete_id = pa.id
			inner join moneda mo on mo.id = pa.moneda_id
			WHERE pd.destino_id = #{id}
    </select>
    
    <resultMap type="paquete" id="rmPaqueteByPK">
        <id column="id" property="id"/>







>





|
>




|







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
     <resultMap type="paquete" id="rmPaqueteBusqueda">
        <id column="id" property="id"/>
		<result column="codigo" property="codigo"/>
        <result column="nombre" property="nombre"/>
        <result column="descripcion" property="descripcion"/>
        <result column="itinerario" property="itinerario"/>
        <result column="precio_base" property="precio"/>
           <result column="imagen" property="imagen"/>
        <association property="moneda" javaType="moneda">
            	<result column = "abrev" property="abrev"/>
        </association>
        <association property="destino" javaType="destino">
            <result column="destino_id" property="id"/>
        </association>  
      
     </resultMap>
     
    <select id="buscar" resultMap="rmPaqueteBusqueda" parameterType="int">
    	SELECT pa.id, pa.codigo, pa.nombre, pa.descripcion, pa.itinerario,
			pa.precio_base, mo.abrev, pd.destino_id, pa.imagen FROM paquete pa
			inner join paquete_has_destino pd on pd.paquete_id = pa.id
			inner join moneda mo on mo.id = pa.moneda_id
			WHERE pd.destino_id = #{id}
    </select>
    
    <resultMap type="paquete" id="rmPaqueteByPK">
        <id column="id" property="id"/>