Commit da34502468c34447940a31a60de8c63bf9b33703
0 parents
Initial commit
Showing
81 changed files
with
2469 additions
and
0 deletions
Show diff stats
1 | +++ a/.idea/artifacts/LO53_mobile_localization_war.xml | |
1 | +<component name="ArtifactManager"> | |
2 | + <artifact type="war" name="LO53_mobile_localization:war"> | |
3 | + <output-path>$PROJECT_DIR$/target</output-path> | |
4 | + <root id="archive" name="mobile_localization-1.0-SNAPSHOT.war"> | |
5 | + <element id="artifact" artifact-name="LO53_mobile_localization:war exploded" /> | |
6 | + </root> | |
7 | + </artifact> | |
8 | +</component> | |
0 | 9 | \ No newline at end of file | ... | ... |
.idea/artifacts/LO53_mobile_localization_war_exploded.xml
0 โ 100644
1 | +++ a/.idea/artifacts/LO53_mobile_localization_war_exploded.xml | |
1 | +<component name="ArtifactManager"> | |
2 | + <artifact type="exploded-war" name="LO53_mobile_localization:war exploded"> | |
3 | + <output-path>$PROJECT_DIR$/target/mobile_localization-1.0-SNAPSHOT</output-path> | |
4 | + <root id="root"> | |
5 | + <element id="directory" name="WEB-INF"> | |
6 | + <element id="directory" name="classes"> | |
7 | + <element id="module-output" name="LO53_mobile_localization" /> | |
8 | + </element> | |
9 | + <element id="directory" name="lib"> | |
10 | + <element id="library" level="project" name="Maven: org.hibernate:hibernate-core:5.2.5.Final" /> | |
11 | + <element id="library" level="project" name="Maven: org.jboss.logging:jboss-logging:3.3.0.Final" /> | |
12 | + <element id="library" level="project" name="Maven: org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.0.Final" /> | |
13 | + <element id="library" level="project" name="Maven: org.javassist:javassist:3.20.0-GA" /> | |
14 | + <element id="library" level="project" name="Maven: antlr:antlr:2.7.7" /> | |
15 | + <element id="library" level="project" name="Maven: org.apache.geronimo.specs:geronimo-jta_1.1_spec:1.1.1" /> | |
16 | + <element id="library" level="project" name="Maven: org.jboss:jandex:2.0.3.Final" /> | |
17 | + <element id="library" level="project" name="Maven: com.fasterxml:classmate:1.3.0" /> | |
18 | + <element id="library" level="project" name="Maven: dom4j:dom4j:1.6.1" /> | |
19 | + <element id="library" level="project" name="Maven: org.hibernate.common:hibernate-commons-annotations:5.0.1.Final" /> | |
20 | + <element id="library" level="project" name="Maven: javax.enterprise:cdi-api:1.1" /> | |
21 | + <element id="library" level="project" name="Maven: javax.el:el-api:2.2" /> | |
22 | + <element id="library" level="project" name="Maven: org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.1_spec:1.0.0.Beta1" /> | |
23 | + <element id="library" level="project" name="Maven: javax.annotation:jsr250-api:1.0" /> | |
24 | + <element id="library" level="project" name="Maven: javax.inject:javax.inject:1" /> | |
25 | + <element id="library" level="project" name="Maven: org.apache.tomcat:tomcat-servlet-api:9.0.0.M15" /> | |
26 | + <element id="library" level="project" name="Maven: org.slf4j:slf4j-log4j12:1.5.8" /> | |
27 | + <element id="library" level="project" name="Maven: log4j:log4j:1.2.14" /> | |
28 | + <element id="library" level="project" name="Maven: org.slf4j:slf4j-api:1.5.8" /> | |
29 | + <element id="library" level="project" name="Maven: postgresql:postgresql:9.1-901.jdbc4" /> | |
30 | + <element id="library" level="project" name="Maven: org.hibernate:hibernate-annotations:3.5.6-Final" /> | |
31 | + <element id="library" level="project" name="Maven: org.hibernate:hibernate-commons-annotations:3.2.0.Final" /> | |
32 | + <element id="library" level="project" name="Maven: org.hibernate.javax.persistence:hibernate-jpa-2.0-api:1.0.0.Final" /> | |
33 | + <element id="library" level="project" name="Maven: commons-beanutils:commons-beanutils:1.9.3" /> | |
34 | + <element id="library" level="project" name="Maven: commons-logging:commons-logging:1.2" /> | |
35 | + <element id="library" level="project" name="Maven: commons-collections:commons-collections:3.2.2" /> | |
36 | + </element> | |
37 | + </element> | |
38 | + <element id="directory" name="META-INF"> | |
39 | + <element id="file-copy" path="$PROJECT_DIR$/target/mobile_localization-1.0-SNAPSHOT/META-INF/MANIFEST.MF" /> | |
40 | + </element> | |
41 | + <element id="javaee-facet-resources" facet="LO53_mobile_localization/web/Web" /> | |
42 | + </root> | |
43 | + </artifact> | |
44 | +</component> | |
0 | 45 | \ No newline at end of file | ... | ... |
1 | +++ a/.idea/compiler.xml | |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<project version="4"> | |
3 | + <component name="CompilerConfiguration"> | |
4 | + <annotationProcessing> | |
5 | + <profile name="Maven default annotation processors profile" enabled="true"> | |
6 | + <sourceOutputDir name="target/generated-sources/annotations" /> | |
7 | + <sourceTestOutputDir name="target/generated-test-sources/test-annotations" /> | |
8 | + <outputRelativeToContentRoot value="true" /> | |
9 | + <module name="LO53_mobile_localization" /> | |
10 | + </profile> | |
11 | + </annotationProcessing> | |
12 | + <bytecodeTargetLevel> | |
13 | + <module name="LO53_mobile_localization" target="1.7" /> | |
14 | + </bytecodeTargetLevel> | |
15 | + </component> | |
16 | +</project> | |
0 | 17 | \ No newline at end of file | ... | ... |
1 | +++ a/.idea/dataSources.xml | |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<project version="4"> | |
3 | + <component name="DataSourceManagerImpl" format="xml" multifile-model="true"> | |
4 | + <data-source source="LOCAL" name="LO53@localhost" uuid="e8821dd5-920f-4867-a7e5-2a062b734820"> | |
5 | + <driver-ref>postgresql</driver-ref> | |
6 | + <synchronize>true</synchronize> | |
7 | + <jdbc-driver>org.postgresql.Driver</jdbc-driver> | |
8 | + <jdbc-url>jdbc:postgresql://localhost:5432/LO53</jdbc-url> | |
9 | + </data-source> | |
10 | + <data-source source="LOCAL" name="hibernate.cfg.xml/Hibernate" uuid="767b098c-c5bc-42ee-b3bc-d02e521ecc23"> | |
11 | + <driver-ref>postgresql</driver-ref> | |
12 | + <synchronize>true</synchronize> | |
13 | + <imported>true</imported> | |
14 | + <remarks>$PROJECT_DIR$/src/main/resources/hibernate.cfg.xml</remarks> | |
15 | + <jdbc-driver>org.postgresql.Driver</jdbc-driver> | |
16 | + <jdbc-url>jdbc:postgresql://localhost:5432/LO53</jdbc-url> | |
17 | + <libraries> | |
18 | + <library> | |
19 | + <url>file://$APPLICATION_CONFIG_DIR$/jdbc-drivers/PostgreSQL/9.4-1201/postgresql-9.4-1201.jdbc4.jar</url> | |
20 | + </library> | |
21 | + <library> | |
22 | + <url>file://$APPLICATION_CONFIG_DIR$/jdbc-drivers/PostgreSQL/9.4-1201/postgresql-driver-license.txt</url> | |
23 | + </library> | |
24 | + </libraries> | |
25 | + </data-source> | |
26 | + </component> | |
27 | +</project> | |
0 | 28 | \ No newline at end of file | ... | ... |
.idea/dataSources/767b098c-c5bc-42ee-b3bc-d02e521ecc23.xml
0 โ 100644
1 | +++ a/.idea/dataSources/767b098c-c5bc-42ee-b3bc-d02e521ecc23.xml | |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<dataSource name="hibernate.cfg.xml/Hibernate"> | |
3 | + <database-model serializer="dbm" rdbms="POSTGRES" format-version="4.0"> | |
4 | + <root id="1"/> | |
5 | + <database id="2" parent="1" name="LO53"> | |
6 | + <ObjectId>30998</ObjectId> | |
7 | + <Current>1</Current> | |
8 | + <Visible>1</Visible> | |
9 | + </database> | |
10 | + <schema id="3" parent="2" name="public"> | |
11 | + <ObjectId>2200</ObjectId> | |
12 | + <IntrospectionTimestamp>2017-05-31.07:36:16.132</IntrospectionTimestamp> | |
13 | + <IntrospectionStateNumber>11286</IntrospectionStateNumber> | |
14 | + <Current>1</Current> | |
15 | + <Visible>1</Visible> | |
16 | + </schema> | |
17 | + <schema id="4" parent="2" name="pg_catalog"> | |
18 | + <ObjectId>11</ObjectId> | |
19 | + </schema> | |
20 | + <schema id="5" parent="2" name="pg_toast"> | |
21 | + <ObjectId>99</ObjectId> | |
22 | + </schema> | |
23 | + <schema id="6" parent="2" name="pg_temp_1"> | |
24 | + <ObjectId>11848</ObjectId> | |
25 | + </schema> | |
26 | + <schema id="7" parent="2" name="pg_toast_temp_1"> | |
27 | + <ObjectId>11849</ObjectId> | |
28 | + </schema> | |
29 | + <schema id="8" parent="2" name="information_schema"> | |
30 | + <ObjectId>12113</ObjectId> | |
31 | + </schema> | |
32 | + <sequence id="9" parent="3" name="hibernate_sequence"> | |
33 | + <ObjectId>35521</ObjectId> | |
34 | + <StateNumber>11277</StateNumber> | |
35 | + <SequenceIdentity>1</SequenceIdentity> | |
36 | + </sequence> | |
37 | + <table id="10" parent="3" name="accesspoint"> | |
38 | + <ObjectId>35523</ObjectId> | |
39 | + <StateNumber>11285</StateNumber> | |
40 | + </table> | |
41 | + <table id="11" parent="3" name="location"> | |
42 | + <ObjectId>35528</ObjectId> | |
43 | + <StateNumber>11286</StateNumber> | |
44 | + </table> | |
45 | + <table id="12" parent="3" name="map"> | |
46 | + <ObjectId>35533</ObjectId> | |
47 | + <StateNumber>11284</StateNumber> | |
48 | + </table> | |
49 | + <table id="13" parent="3" name="rssi"> | |
50 | + <ObjectId>35541</ObjectId> | |
51 | + <StateNumber>11286</StateNumber> | |
52 | + </table> | |
53 | + <column id="14" parent="10" name="id"> | |
54 | + <Position>1</Position> | |
55 | + <DataType>integer|0</DataType> | |
56 | + <NotNull>1</NotNull> | |
57 | + <StateNumber>11278</StateNumber> | |
58 | + </column> | |
59 | + <column id="15" parent="10" name="mac_address"> | |
60 | + <Position>2</Position> | |
61 | + <DataType>varchar(18)|0</DataType> | |
62 | + <StateNumber>11278</StateNumber> | |
63 | + </column> | |
64 | + <column id="16" parent="10" name="location_id_id"> | |
65 | + <Position>3</Position> | |
66 | + <DataType>integer|0</DataType> | |
67 | + <StateNumber>11278</StateNumber> | |
68 | + </column> | |
69 | + <index id="17" parent="10" name="accesspoint_pkey"> | |
70 | + <ObjectId>35526</ObjectId> | |
71 | + <ColNames>id</ColNames> | |
72 | + <Unique>1</Unique> | |
73 | + </index> | |
74 | + <index id="18" parent="10" name="uk_58em6b5lhouv812y1d05nwv9w"> | |
75 | + <ObjectId>35546</ObjectId> | |
76 | + <ColNames>mac_address</ColNames> | |
77 | + <Unique>1</Unique> | |
78 | + </index> | |
79 | + <key id="19" parent="10" name="accesspoint_pkey"> | |
80 | + <ObjectId>35527</ObjectId> | |
81 | + <ColNames>id</ColNames> | |
82 | + <UnderlyingIndexName>accesspoint_pkey</UnderlyingIndexName> | |
83 | + <Primary>1</Primary> | |
84 | + </key> | |
85 | + <key id="20" parent="10" name="uk_58em6b5lhouv812y1d05nwv9w"> | |
86 | + <ObjectId>35547</ObjectId> | |
87 | + <ColNames>mac_address</ColNames> | |
88 | + <UnderlyingIndexName>uk_58em6b5lhouv812y1d05nwv9w</UnderlyingIndexName> | |
89 | + </key> | |
90 | + <foreign-key id="21" parent="10" name="fk6hlfk3hfjm2b4i72q2ihikhhf"> | |
91 | + <ObjectId>35548</ObjectId> | |
92 | + <ColNames>location_id_id</ColNames> | |
93 | + <RefTableName>location</RefTableName> | |
94 | + <RefKeyName>location_pkey</RefKeyName> | |
95 | + <RefColNames>id</RefColNames> | |
96 | + </foreign-key> | |
97 | + <column id="22" parent="11" name="id"> | |
98 | + <Position>1</Position> | |
99 | + <DataType>integer|0</DataType> | |
100 | + <NotNull>1</NotNull> | |
101 | + <StateNumber>11279</StateNumber> | |
102 | + </column> | |
103 | + <column id="23" parent="11" name="x"> | |
104 | + <Position>2</Position> | |
105 | + <DataType>double precision|0</DataType> | |
106 | + <NotNull>1</NotNull> | |
107 | + <StateNumber>11279</StateNumber> | |
108 | + </column> | |
109 | + <column id="24" parent="11" name="y"> | |
110 | + <Position>3</Position> | |
111 | + <DataType>double precision|0</DataType> | |
112 | + <NotNull>1</NotNull> | |
113 | + <StateNumber>11279</StateNumber> | |
114 | + </column> | |
115 | + <column id="25" parent="11" name="map_id"> | |
116 | + <Position>4</Position> | |
117 | + <DataType>integer|0</DataType> | |
118 | + <StateNumber>11279</StateNumber> | |
119 | + </column> | |
120 | + <index id="26" parent="11" name="location_pkey"> | |
121 | + <ObjectId>35531</ObjectId> | |
122 | + <ColNames>id</ColNames> | |
123 | + <Unique>1</Unique> | |
124 | + </index> | |
125 | + <key id="27" parent="11" name="location_pkey"> | |
126 | + <ObjectId>35532</ObjectId> | |
127 | + <ColNames>id</ColNames> | |
128 | + <UnderlyingIndexName>location_pkey</UnderlyingIndexName> | |
129 | + <Primary>1</Primary> | |
130 | + </key> | |
131 | + <foreign-key id="28" parent="11" name="fk5t1p6agc1qiyteqvt1tbkml2e"> | |
132 | + <ObjectId>35553</ObjectId> | |
133 | + <ColNames>map_id</ColNames> | |
134 | + <RefTableName>map</RefTableName> | |
135 | + <RefKeyName>map_pkey</RefKeyName> | |
136 | + <RefColNames>id</RefColNames> | |
137 | + </foreign-key> | |
138 | + <column id="29" parent="12" name="id"> | |
139 | + <Position>1</Position> | |
140 | + <DataType>integer|0</DataType> | |
141 | + <NotNull>1</NotNull> | |
142 | + <StateNumber>11280</StateNumber> | |
143 | + </column> | |
144 | + <column id="30" parent="12" name="content"> | |
145 | + <Position>2</Position> | |
146 | + <DataType>bytea|0</DataType> | |
147 | + <StateNumber>11280</StateNumber> | |
148 | + </column> | |
149 | + <column id="31" parent="12" name="description"> | |
150 | + <Position>3</Position> | |
151 | + <DataType>varchar(100)|0</DataType> | |
152 | + <StateNumber>11280</StateNumber> | |
153 | + </column> | |
154 | + <column id="32" parent="12" name="m_height"> | |
155 | + <Position>4</Position> | |
156 | + <DataType>double precision|0</DataType> | |
157 | + <NotNull>1</NotNull> | |
158 | + <StateNumber>11280</StateNumber> | |
159 | + </column> | |
160 | + <column id="33" parent="12" name="m_width"> | |
161 | + <Position>5</Position> | |
162 | + <DataType>double precision|0</DataType> | |
163 | + <NotNull>1</NotNull> | |
164 | + <StateNumber>11280</StateNumber> | |
165 | + </column> | |
166 | + <column id="34" parent="12" name="px_height"> | |
167 | + <Position>6</Position> | |
168 | + <DataType>integer|0</DataType> | |
169 | + <NotNull>1</NotNull> | |
170 | + <StateNumber>11280</StateNumber> | |
171 | + </column> | |
172 | + <column id="35" parent="12" name="px_width"> | |
173 | + <Position>7</Position> | |
174 | + <DataType>integer|0</DataType> | |
175 | + <NotNull>1</NotNull> | |
176 | + <StateNumber>11280</StateNumber> | |
177 | + </column> | |
178 | + <index id="36" parent="12" name="map_pkey"> | |
179 | + <ObjectId>35539</ObjectId> | |
180 | + <ColNames>id</ColNames> | |
181 | + <Unique>1</Unique> | |
182 | + </index> | |
183 | + <key id="37" parent="12" name="map_pkey"> | |
184 | + <ObjectId>35540</ObjectId> | |
185 | + <ColNames>id</ColNames> | |
186 | + <UnderlyingIndexName>map_pkey</UnderlyingIndexName> | |
187 | + <Primary>1</Primary> | |
188 | + </key> | |
189 | + <column id="38" parent="13" name="accesspointid"> | |
190 | + <Position>1</Position> | |
191 | + <DataType>integer|0</DataType> | |
192 | + <NotNull>1</NotNull> | |
193 | + <StateNumber>11281</StateNumber> | |
194 | + </column> | |
195 | + <column id="39" parent="13" name="locationid"> | |
196 | + <Position>2</Position> | |
197 | + <DataType>integer|0</DataType> | |
198 | + <NotNull>1</NotNull> | |
199 | + <StateNumber>11281</StateNumber> | |
200 | + </column> | |
201 | + <column id="40" parent="13" name="occurences"> | |
202 | + <Position>3</Position> | |
203 | + <DataType>integer|0</DataType> | |
204 | + <NotNull>1</NotNull> | |
205 | + <StateNumber>11281</StateNumber> | |
206 | + </column> | |
207 | + <column id="41" parent="13" name="value"> | |
208 | + <Position>4</Position> | |
209 | + <DataType>double precision|0</DataType> | |
210 | + <NotNull>1</NotNull> | |
211 | + <StateNumber>11281</StateNumber> | |
212 | + </column> | |
213 | + <column id="42" parent="13" name="accesspoint_id"> | |
214 | + <Position>5</Position> | |
215 | + <DataType>integer|0</DataType> | |
216 | + <StateNumber>11281</StateNumber> | |
217 | + </column> | |
218 | + <column id="43" parent="13" name="location_id"> | |
219 | + <Position>6</Position> | |
220 | + <DataType>integer|0</DataType> | |
221 | + <StateNumber>11281</StateNumber> | |
222 | + </column> | |
223 | + <index id="44" parent="13" name="rssi_pkey"> | |
224 | + <ObjectId>35544</ObjectId> | |
225 | + <ColNames>accesspointid | |
226 | +locationid</ColNames> | |
227 | + <Unique>1</Unique> | |
228 | + </index> | |
229 | + <key id="45" parent="13" name="rssi_pkey"> | |
230 | + <ObjectId>35545</ObjectId> | |
231 | + <ColNames>accesspointid | |
232 | +locationid</ColNames> | |
233 | + <UnderlyingIndexName>rssi_pkey</UnderlyingIndexName> | |
234 | + <Primary>1</Primary> | |
235 | + </key> | |
236 | + <foreign-key id="46" parent="13" name="fk6g5r08ytgt65j1ge02na9qnbh"> | |
237 | + <ObjectId>35558</ObjectId> | |
238 | + <ColNames>accesspoint_id</ColNames> | |
239 | + <RefTableName>accesspoint</RefTableName> | |
240 | + <RefKeyName>accesspoint_pkey</RefKeyName> | |
241 | + <RefColNames>id</RefColNames> | |
242 | + </foreign-key> | |
243 | + <foreign-key id="47" parent="13" name="fk8s4vdy24a1d8idnwoxi0njnko"> | |
244 | + <ObjectId>35563</ObjectId> | |
245 | + <ColNames>location_id</ColNames> | |
246 | + <RefTableName>location</RefTableName> | |
247 | + <RefKeyName>location_pkey</RefKeyName> | |
248 | + <RefColNames>id</RefColNames> | |
249 | + </foreign-key> | |
250 | + </database-model> | |
251 | +</dataSource> | |
0 | 252 | \ No newline at end of file | ... | ... |
.idea/dataSources/767b098c-c5bc-42ee-b3bc-d02e521ecc23/_metadata_/metadata
0 โ 100644
No preview for this file type
.idea/dataSources/767b098c-c5bc-42ee-b3bc-d02e521ecc23/_metadata_/metadata.keystream
0 โ 100644
No preview for this file type
.idea/dataSources/767b098c-c5bc-42ee-b3bc-d02e521ecc23/_metadata_/metadata.keystream.len
0 โ 100644
No preview for this file type
.idea/dataSources/767b098c-c5bc-42ee-b3bc-d02e521ecc23/_metadata_/metadata.len
0 โ 100644
No preview for this file type
.idea/dataSources/767b098c-c5bc-42ee-b3bc-d02e521ecc23/_metadata_/metadata.values.at
0 โ 100644
No preview for this file type
.idea/dataSources/767b098c-c5bc-42ee-b3bc-d02e521ecc23/_metadata_/metadata_i
0 โ 100644
No preview for this file type
.idea/dataSources/767b098c-c5bc-42ee-b3bc-d02e521ecc23/_metadata_/metadata_i.len
0 โ 100644
No preview for this file type
.idea/dataSources/767b098c-c5bc-42ee-b3bc-d02e521ecc23/storage.xml
0 โ 100644
.idea/dataSources/e8821dd5-920f-4867-a7e5-2a062b734820.xml
0 โ 100644
1 | +++ a/.idea/dataSources/e8821dd5-920f-4867-a7e5-2a062b734820.xml | |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<dataSource name="LO53@localhost"> | |
3 | + <database-model serializer="dbm" rdbms="POSTGRES" format-version="4.0"> | |
4 | + <root id="1"/> | |
5 | + <database id="2" parent="1" name="LO53"> | |
6 | + <ObjectId>16454</ObjectId> | |
7 | + <Current>1</Current> | |
8 | + <Visible>1</Visible> | |
9 | + </database> | |
10 | + <schema id="3" parent="2" name="public"> | |
11 | + <ObjectId>2200</ObjectId> | |
12 | + <IntrospectionTimestamp>2017-05-04.09:49:48.812</IntrospectionTimestamp> | |
13 | + <Current>1</Current> | |
14 | + <Visible>1</Visible> | |
15 | + </schema> | |
16 | + <schema id="4" parent="2" name="pg_catalog"> | |
17 | + <ObjectId>11</ObjectId> | |
18 | + </schema> | |
19 | + <schema id="5" parent="2" name="pg_toast"> | |
20 | + <ObjectId>99</ObjectId> | |
21 | + </schema> | |
22 | + <schema id="6" parent="2" name="pg_temp_1"> | |
23 | + <ObjectId>11848</ObjectId> | |
24 | + </schema> | |
25 | + <schema id="7" parent="2" name="pg_toast_temp_1"> | |
26 | + <ObjectId>11849</ObjectId> | |
27 | + </schema> | |
28 | + <schema id="8" parent="2" name="information_schema"> | |
29 | + <ObjectId>12113</ObjectId> | |
30 | + </schema> | |
31 | + </database-model> | |
32 | +</dataSource> | |
0 | 33 | \ No newline at end of file | ... | ... |
.idea/dataSources/e8821dd5-920f-4867-a7e5-2a062b734820/_metadata_/metadata
0 โ 100644
No preview for this file type
.idea/dataSources/e8821dd5-920f-4867-a7e5-2a062b734820/_metadata_/metadata.keystream
0 โ 100644
No preview for this file type
.idea/dataSources/e8821dd5-920f-4867-a7e5-2a062b734820/_metadata_/metadata.keystream.len
0 โ 100644
No preview for this file type
.idea/dataSources/e8821dd5-920f-4867-a7e5-2a062b734820/_metadata_/metadata.len
0 โ 100644
No preview for this file type
.idea/dataSources/e8821dd5-920f-4867-a7e5-2a062b734820/_metadata_/metadata.values.at
0 โ 100644
No preview for this file type
.idea/dataSources/e8821dd5-920f-4867-a7e5-2a062b734820/_metadata_/metadata_i
0 โ 100644
No preview for this file type
.idea/dataSources/e8821dd5-920f-4867-a7e5-2a062b734820/_metadata_/metadata_i.len
0 โ 100644
No preview for this file type
.idea/dataSources/e8821dd5-920f-4867-a7e5-2a062b734820/storage.xml
0 โ 100644
1 | +++ a/.idea/libraries/Maven__antlr_antlr_2_7_7.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: antlr:antlr:2.7.7"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/antlr/antlr/2.7.7/antlr-2.7.7.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/antlr/antlr/2.7.7/antlr-2.7.7-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/antlr/antlr/2.7.7/antlr-2.7.7-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
.idea/libraries/Maven__com_fasterxml_classmate_1_3_0.xml
0 โ 100644
1 | +++ a/.idea/libraries/Maven__com_fasterxml_classmate_1_3_0.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: com.fasterxml:classmate:1.3.0"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/com/fasterxml/classmate/1.3.0/classmate-1.3.0.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/com/fasterxml/classmate/1.3.0/classmate-1.3.0-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/com/fasterxml/classmate/1.3.0/classmate-1.3.0-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
.idea/libraries/Maven__commons_beanutils_commons_beanutils_1_9_3.xml
0 โ 100644
1 | +++ a/.idea/libraries/Maven__commons_beanutils_commons_beanutils_1_9_3.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: commons-beanutils:commons-beanutils:1.9.3"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/commons-beanutils/commons-beanutils/1.9.3/commons-beanutils-1.9.3.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/commons-beanutils/commons-beanutils/1.9.3/commons-beanutils-1.9.3-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/commons-beanutils/commons-beanutils/1.9.3/commons-beanutils-1.9.3-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
.idea/libraries/Maven__commons_collections_commons_collections_3_2_2.xml
0 โ 100644
1 | +++ a/.idea/libraries/Maven__commons_collections_commons_collections_3_2_2.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: commons-collections:commons-collections:3.2.2"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
.idea/libraries/Maven__commons_logging_commons_logging_1_2.xml
0 โ 100644
1 | +++ a/.idea/libraries/Maven__commons_logging_commons_logging_1_2.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: commons-logging:commons-logging:1.2"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/commons-logging/commons-logging/1.2/commons-logging-1.2.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/commons-logging/commons-logging/1.2/commons-logging-1.2-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/commons-logging/commons-logging/1.2/commons-logging-1.2-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
1 | +++ a/.idea/libraries/Maven__dom4j_dom4j_1_6_1.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: dom4j:dom4j:1.6.1"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/dom4j/dom4j/1.6.1/dom4j-1.6.1-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/dom4j/dom4j/1.6.1/dom4j-1.6.1-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
.idea/libraries/Maven__javax_annotation_jsr250_api_1_0.xml
0 โ 100644
1 | +++ a/.idea/libraries/Maven__javax_annotation_jsr250_api_1_0.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: javax.annotation:jsr250-api:1.0"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/javax/annotation/jsr250-api/1.0/jsr250-api-1.0-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/javax/annotation/jsr250-api/1.0/jsr250-api-1.0-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
1 | +++ a/.idea/libraries/Maven__javax_el_el_api_2_2.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: javax.el:el-api:2.2"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/javax/el/el-api/2.2/el-api-2.2.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/javax/el/el-api/2.2/el-api-2.2-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/javax/el/el-api/2.2/el-api-2.2-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
.idea/libraries/Maven__javax_enterprise_cdi_api_1_1.xml
0 โ 100644
1 | +++ a/.idea/libraries/Maven__javax_enterprise_cdi_api_1_1.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: javax.enterprise:cdi-api:1.1"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/javax/enterprise/cdi-api/1.1/cdi-api-1.1.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/javax/enterprise/cdi-api/1.1/cdi-api-1.1-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/javax/enterprise/cdi-api/1.1/cdi-api-1.1-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
.idea/libraries/Maven__javax_inject_javax_inject_1.xml
0 โ 100644
1 | +++ a/.idea/libraries/Maven__javax_inject_javax_inject_1.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: javax.inject:javax.inject:1"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/javax/inject/javax.inject/1/javax.inject-1.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/javax/inject/javax.inject/1/javax.inject-1-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/javax/inject/javax.inject/1/javax.inject-1-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
1 | +++ a/.idea/libraries/Maven__junit_junit_4_12.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: junit:junit:4.12"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
1 | +++ a/.idea/libraries/Maven__log4j_log4j_1_2_14.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: log4j:log4j:1.2.14"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/log4j/log4j/1.2.14/log4j-1.2.14.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/log4j/log4j/1.2.14/log4j-1.2.14-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/log4j/log4j/1.2.14/log4j-1.2.14-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
.idea/libraries/Maven__org_apache_geronimo_specs_geronimo_jta_1_1_spec_1_1_1.xml
0 โ 100644
1 | +++ a/.idea/libraries/Maven__org_apache_geronimo_specs_geronimo_jta_1_1_spec_1_1_1.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: org.apache.geronimo.specs:geronimo-jta_1.1_spec:1.1.1"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1.1/geronimo-jta_1.1_spec-1.1.1.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1.1/geronimo-jta_1.1_spec-1.1.1-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1.1/geronimo-jta_1.1_spec-1.1.1-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
.idea/libraries/Maven__org_apache_tomcat_tomcat_servlet_api_9_0_0_M15.xml
0 โ 100644
1 | +++ a/.idea/libraries/Maven__org_apache_tomcat_tomcat_servlet_api_9_0_0_M15.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: org.apache.tomcat:tomcat-servlet-api:9.0.0.M15"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/org/apache/tomcat/tomcat-servlet-api/9.0.0.M15/tomcat-servlet-api-9.0.0.M15.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/org/apache/tomcat/tomcat-servlet-api/9.0.0.M15/tomcat-servlet-api-9.0.0.M15-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/org/apache/tomcat/tomcat-servlet-api/9.0.0.M15/tomcat-servlet-api-9.0.0.M15-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml
0 โ 100644
1 | +++ a/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: org.hamcrest:hamcrest-core:1.3"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
.idea/libraries/Maven__org_hibernate_common_hibernate_commons_annotations_5_0_1_Final.xml
0 โ 100644
1 | +++ a/.idea/libraries/Maven__org_hibernate_common_hibernate_commons_annotations_5_0_1_Final.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: org.hibernate.common:hibernate-commons-annotations:5.0.1.Final"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/org/hibernate/common/hibernate-commons-annotations/5.0.1.Final/hibernate-commons-annotations-5.0.1.Final.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/org/hibernate/common/hibernate-commons-annotations/5.0.1.Final/hibernate-commons-annotations-5.0.1.Final-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/org/hibernate/common/hibernate-commons-annotations/5.0.1.Final/hibernate-commons-annotations-5.0.1.Final-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
.idea/libraries/Maven__org_hibernate_hibernate_annotations_3_5_6_Final.xml
0 โ 100644
1 | +++ a/.idea/libraries/Maven__org_hibernate_hibernate_annotations_3_5_6_Final.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: org.hibernate:hibernate-annotations:3.5.6-Final"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/org/hibernate/hibernate-annotations/3.5.6-Final/hibernate-annotations-3.5.6-Final.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/org/hibernate/hibernate-annotations/3.5.6-Final/hibernate-annotations-3.5.6-Final-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/org/hibernate/hibernate-annotations/3.5.6-Final/hibernate-annotations-3.5.6-Final-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
.idea/libraries/Maven__org_hibernate_hibernate_commons_annotations_3_2_0_Final.xml
0 โ 100644
1 | +++ a/.idea/libraries/Maven__org_hibernate_hibernate_commons_annotations_3_2_0_Final.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: org.hibernate:hibernate-commons-annotations:3.2.0.Final"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/org/hibernate/hibernate-commons-annotations/3.2.0.Final/hibernate-commons-annotations-3.2.0.Final.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/org/hibernate/hibernate-commons-annotations/3.2.0.Final/hibernate-commons-annotations-3.2.0.Final-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/org/hibernate/hibernate-commons-annotations/3.2.0.Final/hibernate-commons-annotations-3.2.0.Final-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
.idea/libraries/Maven__org_hibernate_hibernate_core_5_2_5_Final.xml
0 โ 100644
1 | +++ a/.idea/libraries/Maven__org_hibernate_hibernate_core_5_2_5_Final.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: org.hibernate:hibernate-core:5.2.5.Final"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/org/hibernate/hibernate-core/5.2.5.Final/hibernate-core-5.2.5.Final.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/org/hibernate/hibernate-core/5.2.5.Final/hibernate-core-5.2.5.Final-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/org/hibernate/hibernate-core/5.2.5.Final/hibernate-core-5.2.5.Final-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
.idea/libraries/Maven__org_hibernate_javax_persistence_hibernate_jpa_2_0_api_1_0_0_Final.xml
0 โ 100644
1 | +++ a/.idea/libraries/Maven__org_hibernate_javax_persistence_hibernate_jpa_2_0_api_1_0_0_Final.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: org.hibernate.javax.persistence:hibernate-jpa-2.0-api:1.0.0.Final"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.0.Final/hibernate-jpa-2.0-api-1.0.0.Final.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.0.Final/hibernate-jpa-2.0-api-1.0.0.Final-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/org/hibernate/javax/persistence/hibernate-jpa-2.0-api/1.0.0.Final/hibernate-jpa-2.0-api-1.0.0.Final-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
.idea/libraries/Maven__org_hibernate_javax_persistence_hibernate_jpa_2_1_api_1_0_0_Final.xml
0 โ 100644
1 | +++ a/.idea/libraries/Maven__org_hibernate_javax_persistence_hibernate_jpa_2_1_api_1_0_0_Final.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.0.Final"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/org/hibernate/javax/persistence/hibernate-jpa-2.1-api/1.0.0.Final/hibernate-jpa-2.1-api-1.0.0.Final.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/org/hibernate/javax/persistence/hibernate-jpa-2.1-api/1.0.0.Final/hibernate-jpa-2.1-api-1.0.0.Final-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/org/hibernate/javax/persistence/hibernate-jpa-2.1-api/1.0.0.Final/hibernate-jpa-2.1-api-1.0.0.Final-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
.idea/libraries/Maven__org_javassist_javassist_3_20_0_GA.xml
0 โ 100644
1 | +++ a/.idea/libraries/Maven__org_javassist_javassist_3_20_0_GA.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: org.javassist:javassist:3.20.0-GA"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
.idea/libraries/Maven__org_jboss_jandex_2_0_3_Final.xml
0 โ 100644
1 | +++ a/.idea/libraries/Maven__org_jboss_jandex_2_0_3_Final.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: org.jboss:jandex:2.0.3.Final"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/org/jboss/jandex/2.0.3.Final/jandex-2.0.3.Final.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/org/jboss/jandex/2.0.3.Final/jandex-2.0.3.Final-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/org/jboss/jandex/2.0.3.Final/jandex-2.0.3.Final-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_0_Final.xml
0 โ 100644
1 | +++ a/.idea/libraries/Maven__org_jboss_logging_jboss_logging_3_3_0_Final.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: org.jboss.logging:jboss-logging:3.3.0.Final"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/org/jboss/logging/jboss-logging/3.3.0.Final/jboss-logging-3.3.0.Final.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/org/jboss/logging/jboss-logging/3.3.0.Final/jboss-logging-3.3.0.Final-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/org/jboss/logging/jboss-logging/3.3.0.Final/jboss-logging-3.3.0.Final-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
.idea/libraries/Maven__org_jboss_spec_javax_interceptor_jboss_interceptors_api_1_1_spec_1_0_0_Beta1.xml
0 โ 100644
1 | +++ a/.idea/libraries/Maven__org_jboss_spec_javax_interceptor_jboss_interceptors_api_1_1_spec_1_0_0_Beta1.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.1_spec:1.0.0.Beta1"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/org/jboss/spec/javax/interceptor/jboss-interceptors-api_1.1_spec/1.0.0.Beta1/jboss-interceptors-api_1.1_spec-1.0.0.Beta1.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/org/jboss/spec/javax/interceptor/jboss-interceptors-api_1.1_spec/1.0.0.Beta1/jboss-interceptors-api_1.1_spec-1.0.0.Beta1-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/org/jboss/spec/javax/interceptor/jboss-interceptors-api_1.1_spec/1.0.0.Beta1/jboss-interceptors-api_1.1_spec-1.0.0.Beta1-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
.idea/libraries/Maven__org_slf4j_slf4j_api_1_5_8.xml
0 โ 100644
1 | +++ a/.idea/libraries/Maven__org_slf4j_slf4j_api_1_5_8.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: org.slf4j:slf4j-api:1.5.8"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/org/slf4j/slf4j-api/1.5.8/slf4j-api-1.5.8.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/org/slf4j/slf4j-api/1.5.8/slf4j-api-1.5.8-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/org/slf4j/slf4j-api/1.5.8/slf4j-api-1.5.8-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
.idea/libraries/Maven__org_slf4j_slf4j_log4j12_1_5_8.xml
0 โ 100644
1 | +++ a/.idea/libraries/Maven__org_slf4j_slf4j_log4j12_1_5_8.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: org.slf4j:slf4j-log4j12:1.5.8"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/org/slf4j/slf4j-log4j12/1.5.8/slf4j-log4j12-1.5.8.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/org/slf4j/slf4j-log4j12/1.5.8/slf4j-log4j12-1.5.8-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/org/slf4j/slf4j-log4j12/1.5.8/slf4j-log4j12-1.5.8-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
.idea/libraries/Maven__postgresql_postgresql_9_1_901_jdbc4.xml
0 โ 100644
1 | +++ a/.idea/libraries/Maven__postgresql_postgresql_9_1_901_jdbc4.xml | |
1 | +<component name="libraryTable"> | |
2 | + <library name="Maven: postgresql:postgresql:9.1-901.jdbc4"> | |
3 | + <CLASSES> | |
4 | + <root url="jar://$MAVEN_REPOSITORY$/postgresql/postgresql/9.1-901.jdbc4/postgresql-9.1-901.jdbc4.jar!/" /> | |
5 | + </CLASSES> | |
6 | + <JAVADOC> | |
7 | + <root url="jar://$MAVEN_REPOSITORY$/postgresql/postgresql/9.1-901.jdbc4/postgresql-9.1-901.jdbc4-javadoc.jar!/" /> | |
8 | + </JAVADOC> | |
9 | + <SOURCES> | |
10 | + <root url="jar://$MAVEN_REPOSITORY$/postgresql/postgresql/9.1-901.jdbc4/postgresql-9.1-901.jdbc4-sources.jar!/" /> | |
11 | + </SOURCES> | |
12 | + </library> | |
13 | +</component> | |
0 | 14 | \ No newline at end of file | ... | ... |
1 | +++ a/.idea/misc.xml | |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<project version="4"> | |
3 | + <component name="FrameworkDetectionExcludesConfiguration"> | |
4 | + <file type="web" url="file://$PROJECT_DIR$" /> | |
5 | + </component> | |
6 | + <component name="MavenProjectsManager"> | |
7 | + <option name="originalFiles"> | |
8 | + <list> | |
9 | + <option value="$PROJECT_DIR$/pom.xml" /> | |
10 | + </list> | |
11 | + </option> | |
12 | + </component> | |
13 | + <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> | |
14 | + <output url="file://$PROJECT_DIR$/out" /> | |
15 | + </component> | |
16 | +</project> | |
0 | 17 | \ No newline at end of file | ... | ... |
1 | +++ a/.idea/modules.xml | |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<project version="4"> | |
3 | + <component name="ProjectModuleManager"> | |
4 | + <modules> | |
5 | + <module fileurl="file://$PROJECT_DIR$/LO53_mobile_localization.iml" filepath="$PROJECT_DIR$/LO53_mobile_localization.iml" /> | |
6 | + </modules> | |
7 | + </component> | |
8 | +</project> | |
0 | 9 | \ No newline at end of file | ... | ... |
1 | +++ a/.idea/uiDesigner.xml | |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<project version="4"> | |
3 | + <component name="Palette2"> | |
4 | + <group name="Swing"> | |
5 | + <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false"> | |
6 | + <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" /> | |
7 | + </item> | |
8 | + <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false"> | |
9 | + <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" /> | |
10 | + </item> | |
11 | + <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false"> | |
12 | + <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" /> | |
13 | + </item> | |
14 | + <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true"> | |
15 | + <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" /> | |
16 | + </item> | |
17 | + <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
18 | + <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" /> | |
19 | + <initial-values> | |
20 | + <property name="text" value="Button" /> | |
21 | + </initial-values> | |
22 | + </item> | |
23 | + <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
24 | + <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" /> | |
25 | + <initial-values> | |
26 | + <property name="text" value="RadioButton" /> | |
27 | + </initial-values> | |
28 | + </item> | |
29 | + <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
30 | + <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" /> | |
31 | + <initial-values> | |
32 | + <property name="text" value="CheckBox" /> | |
33 | + </initial-values> | |
34 | + </item> | |
35 | + <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false"> | |
36 | + <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" /> | |
37 | + <initial-values> | |
38 | + <property name="text" value="Label" /> | |
39 | + </initial-values> | |
40 | + </item> | |
41 | + <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true"> | |
42 | + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1"> | |
43 | + <preferred-size width="150" height="-1" /> | |
44 | + </default-constraints> | |
45 | + </item> | |
46 | + <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true"> | |
47 | + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1"> | |
48 | + <preferred-size width="150" height="-1" /> | |
49 | + </default-constraints> | |
50 | + </item> | |
51 | + <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true"> | |
52 | + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1"> | |
53 | + <preferred-size width="150" height="-1" /> | |
54 | + </default-constraints> | |
55 | + </item> | |
56 | + <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true"> | |
57 | + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> | |
58 | + <preferred-size width="150" height="50" /> | |
59 | + </default-constraints> | |
60 | + </item> | |
61 | + <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true"> | |
62 | + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> | |
63 | + <preferred-size width="150" height="50" /> | |
64 | + </default-constraints> | |
65 | + </item> | |
66 | + <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true"> | |
67 | + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> | |
68 | + <preferred-size width="150" height="50" /> | |
69 | + </default-constraints> | |
70 | + </item> | |
71 | + <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true"> | |
72 | + <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" /> | |
73 | + </item> | |
74 | + <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
75 | + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> | |
76 | + <preferred-size width="150" height="50" /> | |
77 | + </default-constraints> | |
78 | + </item> | |
79 | + <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
80 | + <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3"> | |
81 | + <preferred-size width="150" height="50" /> | |
82 | + </default-constraints> | |
83 | + </item> | |
84 | + <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
85 | + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3"> | |
86 | + <preferred-size width="150" height="50" /> | |
87 | + </default-constraints> | |
88 | + </item> | |
89 | + <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
90 | + <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3"> | |
91 | + <preferred-size width="200" height="200" /> | |
92 | + </default-constraints> | |
93 | + </item> | |
94 | + <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false"> | |
95 | + <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3"> | |
96 | + <preferred-size width="200" height="200" /> | |
97 | + </default-constraints> | |
98 | + </item> | |
99 | + <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true"> | |
100 | + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" /> | |
101 | + </item> | |
102 | + <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
103 | + <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" /> | |
104 | + </item> | |
105 | + <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false"> | |
106 | + <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" /> | |
107 | + </item> | |
108 | + <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
109 | + <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" /> | |
110 | + </item> | |
111 | + <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false"> | |
112 | + <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1"> | |
113 | + <preferred-size width="-1" height="20" /> | |
114 | + </default-constraints> | |
115 | + </item> | |
116 | + <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false"> | |
117 | + <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" /> | |
118 | + </item> | |
119 | + <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false"> | |
120 | + <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" /> | |
121 | + </item> | |
122 | + </group> | |
123 | + </component> | |
124 | +</project> | |
0 | 125 | \ No newline at end of file | ... | ... |
1 | +++ a/LO53_mobile_localization.iml | |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4"> | |
3 | + <component name="FacetManager"> | |
4 | + <facet type="hibernate" name="Hibernate"> | |
5 | + <configuration> | |
6 | + <datasource-map> | |
7 | + <unit-entry name="hibernate.cfg.xml" value="767b098c-c5bc-42ee-b3bc-d02e521ecc23" /> | |
8 | + </datasource-map> | |
9 | + <naming-strategy-map /> | |
10 | + <deploymentDescriptor name="hibernate.cfg.xml" url="file://$MODULE_DIR$/src/main/resources/hibernate.cfg.xml" /> | |
11 | + </configuration> | |
12 | + </facet> | |
13 | + <facet type="web" name="Web"> | |
14 | + <configuration> | |
15 | + <webroots> | |
16 | + <root url="file://$MODULE_DIR$/src/main/webapp" relative="/" /> | |
17 | + </webroots> | |
18 | + <sourceRoots> | |
19 | + <root url="file://$MODULE_DIR$/src/main/java" /> | |
20 | + <root url="file://$MODULE_DIR$/src/main/resources" /> | |
21 | + </sourceRoots> | |
22 | + </configuration> | |
23 | + </facet> | |
24 | + </component> | |
25 | + <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="false"> | |
26 | + <output url="file://$MODULE_DIR$/target/classes" /> | |
27 | + <output-test url="file://$MODULE_DIR$/target/test-classes" /> | |
28 | + <content url="file://$MODULE_DIR$"> | |
29 | + <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" /> | |
30 | + <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" /> | |
31 | + <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" /> | |
32 | + <excludeFolder url="file://$MODULE_DIR$/target" /> | |
33 | + </content> | |
34 | + <orderEntry type="inheritedJdk" /> | |
35 | + <orderEntry type="sourceFolder" forTests="false" /> | |
36 | + <orderEntry type="library" name="Maven: org.hibernate:hibernate-core:5.2.5.Final" level="project" /> | |
37 | + <orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.3.0.Final" level="project" /> | |
38 | + <orderEntry type="library" name="Maven: org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.0.Final" level="project" /> | |
39 | + <orderEntry type="library" name="Maven: org.javassist:javassist:3.20.0-GA" level="project" /> | |
40 | + <orderEntry type="library" name="Maven: antlr:antlr:2.7.7" level="project" /> | |
41 | + <orderEntry type="library" name="Maven: org.apache.geronimo.specs:geronimo-jta_1.1_spec:1.1.1" level="project" /> | |
42 | + <orderEntry type="library" name="Maven: org.jboss:jandex:2.0.3.Final" level="project" /> | |
43 | + <orderEntry type="library" name="Maven: com.fasterxml:classmate:1.3.0" level="project" /> | |
44 | + <orderEntry type="library" name="Maven: dom4j:dom4j:1.6.1" level="project" /> | |
45 | + <orderEntry type="library" name="Maven: org.hibernate.common:hibernate-commons-annotations:5.0.1.Final" level="project" /> | |
46 | + <orderEntry type="library" name="Maven: javax.enterprise:cdi-api:1.1" level="project" /> | |
47 | + <orderEntry type="library" name="Maven: javax.el:el-api:2.2" level="project" /> | |
48 | + <orderEntry type="library" name="Maven: org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.1_spec:1.0.0.Beta1" level="project" /> | |
49 | + <orderEntry type="library" name="Maven: javax.annotation:jsr250-api:1.0" level="project" /> | |
50 | + <orderEntry type="library" name="Maven: javax.inject:javax.inject:1" level="project" /> | |
51 | + <orderEntry type="library" name="Maven: org.apache.tomcat:tomcat-servlet-api:9.0.0.M15" level="project" /> | |
52 | + <orderEntry type="library" scope="RUNTIME" name="Maven: org.slf4j:slf4j-log4j12:1.5.8" level="project" /> | |
53 | + <orderEntry type="library" scope="RUNTIME" name="Maven: log4j:log4j:1.2.14" level="project" /> | |
54 | + <orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.5.8" level="project" /> | |
55 | + <orderEntry type="library" name="Maven: postgresql:postgresql:9.1-901.jdbc4" level="project" /> | |
56 | + <orderEntry type="library" name="Maven: org.hibernate:hibernate-annotations:3.5.6-Final" level="project" /> | |
57 | + <orderEntry type="library" name="Maven: org.hibernate:hibernate-commons-annotations:3.2.0.Final" level="project" /> | |
58 | + <orderEntry type="library" name="Maven: org.hibernate.javax.persistence:hibernate-jpa-2.0-api:1.0.0.Final" level="project" /> | |
59 | + <orderEntry type="library" name="Maven: commons-beanutils:commons-beanutils:1.9.3" level="project" /> | |
60 | + <orderEntry type="library" name="Maven: commons-logging:commons-logging:1.2" level="project" /> | |
61 | + <orderEntry type="library" name="Maven: commons-collections:commons-collections:3.2.2" level="project" /> | |
62 | + <orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.12" level="project" /> | |
63 | + <orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" /> | |
64 | + </component> | |
65 | +</module> | |
0 | 66 | \ No newline at end of file | ... | ... |
1 | +++ a/pom.xml | |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" | |
3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
5 | + <modelVersion>4.0.0</modelVersion> | |
6 | + | |
7 | + <groupId>com.utbm.LO53_mobile_localization</groupId> | |
8 | + <artifactId>mobile_localization</artifactId> | |
9 | + <version>1.0-SNAPSHOT</version> | |
10 | + <packaging>war</packaging> | |
11 | + | |
12 | + <build> | |
13 | + <plugins> | |
14 | + <plugin> | |
15 | + <groupId>org.apache.tomcat.maven</groupId> | |
16 | + <artifactId>tomcat7-maven-plugin</artifactId> | |
17 | + <version>2.2</version> | |
18 | + <configuration> | |
19 | + <url>http://localhost:8080/</url> | |
20 | + </configuration> | |
21 | + </plugin> | |
22 | + <plugin> | |
23 | + <groupId>org.apache.maven.plugins</groupId> | |
24 | + <artifactId>maven-compiler-plugin</artifactId> | |
25 | + <configuration> | |
26 | + <source>1.7</source> | |
27 | + <target>1.7</target> | |
28 | + </configuration> | |
29 | + </plugin> | |
30 | + </plugins> | |
31 | + </build> | |
32 | + | |
33 | + <dependencies> | |
34 | + <dependency> | |
35 | + <groupId>org.hibernate</groupId> | |
36 | + <artifactId>hibernate-core</artifactId> | |
37 | + <version>5.2.5.Final</version> | |
38 | + </dependency> | |
39 | + <dependency> | |
40 | + <groupId>org.apache.tomcat</groupId> | |
41 | + <artifactId>tomcat-servlet-api</artifactId> | |
42 | + <version>9.0.0.M15</version> | |
43 | + </dependency> | |
44 | + <dependency> | |
45 | + <groupId>org.slf4j</groupId> | |
46 | + <artifactId>slf4j-log4j12</artifactId> | |
47 | + <version>1.5.8</version> | |
48 | + <scope>runtime</scope> | |
49 | + </dependency> | |
50 | + <dependency> | |
51 | + <groupId>org.slf4j</groupId> | |
52 | + <artifactId>slf4j-api</artifactId> | |
53 | + <version>1.5.8</version> | |
54 | + </dependency> | |
55 | + <dependency> | |
56 | + <groupId>postgresql</groupId> | |
57 | + <artifactId>postgresql</artifactId> | |
58 | + <version>9.1-901.jdbc4</version> | |
59 | + </dependency> | |
60 | + <dependency> | |
61 | + <groupId>org.hibernate</groupId> | |
62 | + <artifactId>hibernate-annotations</artifactId> | |
63 | + <version>3.5.6-Final</version> | |
64 | + </dependency> | |
65 | + <dependency> | |
66 | + <groupId>commons-beanutils</groupId> | |
67 | + <artifactId>commons-beanutils</artifactId> | |
68 | + <version>1.9.3</version> | |
69 | + </dependency> | |
70 | + <dependency> | |
71 | + <groupId>junit</groupId> | |
72 | + <artifactId>junit</artifactId> | |
73 | + <version>4.12</version> | |
74 | + <scope>test</scope> | |
75 | + </dependency> | |
76 | + </dependencies> | |
77 | + | |
78 | + | |
79 | +</project> | |
0 | 80 | \ No newline at end of file | ... | ... |
src/main/java/com/lo53_mobile_localization/core/MainClass.java
0 โ 100644
1 | +++ a/src/main/java/com/lo53_mobile_localization/core/MainClass.java | |
1 | +package com.lo53_mobile_localization.core; | |
2 | + | |
3 | +import com.lo53_mobile_localization.core.util.HibernateUtil; | |
4 | +import org.hibernate.Session; | |
5 | + | |
6 | +/** | |
7 | + * Created by Thomas on 04/05/2017. | |
8 | + */ | |
9 | +public class MainClass { | |
10 | + | |
11 | + public static void main (String[] args){ | |
12 | + | |
13 | + final Session s = HibernateUtil.getSession(); | |
14 | + } | |
15 | + | |
16 | +} | ... | ... |
src/main/java/com/lo53_mobile_localization/core/entity/AccessPoint.java
0 โ 100644
1 | +++ a/src/main/java/com/lo53_mobile_localization/core/entity/AccessPoint.java | |
1 | +package com.lo53_mobile_localization.core.entity; | |
2 | + | |
3 | +import javax.persistence.*; | |
4 | +import java.io.Serializable; | |
5 | +import java.util.Collection; | |
6 | + | |
7 | +/** | |
8 | + * Created by Thomas on 03/05/2017. | |
9 | + */ | |
10 | + | |
11 | +@Entity | |
12 | +public class AccessPoint implements Serializable, IEntity{ | |
13 | + | |
14 | + @GeneratedValue | |
15 | + @Id | |
16 | + private int id; | |
17 | + | |
18 | + @Column(unique=true, length = 18) | |
19 | + private String mac_address; | |
20 | + | |
21 | + @OneToOne | |
22 | + private Location location_id; | |
23 | + | |
24 | + public int getId() { | |
25 | + return id; | |
26 | + } | |
27 | + | |
28 | + public void setId(int id) { | |
29 | + this.id = id; | |
30 | + } | |
31 | + | |
32 | + public String getMac_address() { | |
33 | + return mac_address; | |
34 | + } | |
35 | + | |
36 | + public void setMac_address(String mac_address) { | |
37 | + this.mac_address = mac_address; | |
38 | + } | |
39 | + | |
40 | + public Location getLocation_id() { | |
41 | + return location_id; | |
42 | + } | |
43 | + | |
44 | + public void setLocation_id(Location location_id) { | |
45 | + this.location_id = location_id; | |
46 | + } | |
47 | + | |
48 | + | |
49 | +} | ... | ... |
src/main/java/com/lo53_mobile_localization/core/entity/IEntity.java
0 โ 100644
src/main/java/com/lo53_mobile_localization/core/entity/Location.java
0 โ 100644
1 | +++ a/src/main/java/com/lo53_mobile_localization/core/entity/Location.java | |
1 | +package com.lo53_mobile_localization.core.entity; | |
2 | + | |
3 | +import javax.persistence.*; | |
4 | +import java.io.Serializable; | |
5 | +import java.util.HashSet; | |
6 | +import java.util.Set; | |
7 | + | |
8 | +/** | |
9 | + * Created by Thomas on 03/05/2017. | |
10 | + */ | |
11 | + | |
12 | +@Entity | |
13 | +public class Location implements Serializable, IEntity{ | |
14 | + | |
15 | + @GeneratedValue | |
16 | + @Id | |
17 | + private int id; | |
18 | + | |
19 | + private double x; | |
20 | + | |
21 | + private double y; | |
22 | + | |
23 | + @ManyToOne | |
24 | + private Map map; | |
25 | + | |
26 | + public int getId() { | |
27 | + return id; | |
28 | + } | |
29 | + | |
30 | + public void setId(int id) { | |
31 | + this.id = id; | |
32 | + } | |
33 | + | |
34 | + public double getX() { | |
35 | + return x; | |
36 | + } | |
37 | + | |
38 | + public void setX(double x) { | |
39 | + this.x = x; | |
40 | + } | |
41 | + | |
42 | + public double getY() { | |
43 | + return y; | |
44 | + } | |
45 | + | |
46 | + public void setY(double y) { | |
47 | + this.y = y; | |
48 | + } | |
49 | + | |
50 | + public Map getMap() { | |
51 | + return map; | |
52 | + } | |
53 | + | |
54 | + public void setMap(Map map) { | |
55 | + this.map = map; | |
56 | + } | |
57 | +} | ... | ... |
src/main/java/com/lo53_mobile_localization/core/entity/Map.java
0 โ 100644
1 | +++ a/src/main/java/com/lo53_mobile_localization/core/entity/Map.java | |
1 | +package com.lo53_mobile_localization.core.entity; | |
2 | + | |
3 | +import javax.persistence.*; | |
4 | +import java.io.Serializable; | |
5 | + | |
6 | +/** | |
7 | + * Created by Thomas on 03/05/2017. | |
8 | + */ | |
9 | +@Entity | |
10 | +public class Map implements Serializable, IEntity{ | |
11 | + | |
12 | + @GeneratedValue | |
13 | + @Id | |
14 | + private int id; | |
15 | + | |
16 | + @Column(length = 100) | |
17 | + private String description; | |
18 | + | |
19 | + private int px_width; | |
20 | + | |
21 | + private int px_height; | |
22 | + | |
23 | + private double m_width; | |
24 | + | |
25 | + private double m_height; | |
26 | + | |
27 | + private byte [] content; | |
28 | + | |
29 | + | |
30 | + public int getId() { | |
31 | + return id; | |
32 | + } | |
33 | + | |
34 | + public void setId(int id) { | |
35 | + this.id = id; | |
36 | + } | |
37 | + | |
38 | + public String getDescription() { | |
39 | + return description; | |
40 | + } | |
41 | + | |
42 | + public void setDescription(String description) { | |
43 | + this.description = description; | |
44 | + } | |
45 | + | |
46 | + public int getPx_width() { | |
47 | + return px_width; | |
48 | + } | |
49 | + | |
50 | + public void setPx_width(int px_width) { | |
51 | + this.px_width = px_width; | |
52 | + } | |
53 | + | |
54 | + public int getPx_height() { | |
55 | + return px_height; | |
56 | + } | |
57 | + | |
58 | + public void setPx_height(int px_height) { | |
59 | + this.px_height = px_height; | |
60 | + } | |
61 | + | |
62 | + public double getM_width() { | |
63 | + return m_width; | |
64 | + } | |
65 | + | |
66 | + public void setM_width(double m_width) { | |
67 | + this.m_width = m_width; | |
68 | + } | |
69 | + | |
70 | + public double getM_height() { | |
71 | + return m_height; | |
72 | + } | |
73 | + | |
74 | + public void setM_height(double m_height) { | |
75 | + this.m_height = m_height; | |
76 | + } | |
77 | + | |
78 | + public byte[] getContent() { | |
79 | + return content; | |
80 | + } | |
81 | + | |
82 | + public void setContent(byte[] content) { | |
83 | + this.content = content; | |
84 | + } | |
85 | +} | ... | ... |
src/main/java/com/lo53_mobile_localization/core/entity/Rssi.java
0 โ 100644
1 | +++ a/src/main/java/com/lo53_mobile_localization/core/entity/Rssi.java | |
1 | +package com.lo53_mobile_localization.core.entity; | |
2 | + | |
3 | +import javax.persistence.*; | |
4 | +import java.io.Serializable; | |
5 | + | |
6 | +/** | |
7 | + * Created by Thomas on 03/05/2017. | |
8 | + */ | |
9 | + | |
10 | +@Entity | |
11 | +public class Rssi implements Serializable { | |
12 | + | |
13 | + @EmbeddedId | |
14 | + private RssiID id; | |
15 | + | |
16 | + @MapsId("locationId") | |
17 | + @JoinColumn(name = "location_id") | |
18 | + @OneToOne | |
19 | + private Location location; | |
20 | + | |
21 | + @MapsId("accessPointId") | |
22 | + @JoinColumn(name = "accessPoint_id") | |
23 | + @OneToOne | |
24 | + private AccessPoint accessPoint; | |
25 | + | |
26 | + private double value; | |
27 | + | |
28 | + private int occurences; | |
29 | + | |
30 | + public double getValue() { | |
31 | + return value; | |
32 | + } | |
33 | + | |
34 | + public void setValue(double value) { | |
35 | + this.value = value; | |
36 | + } | |
37 | + | |
38 | + public int getOccurences() { | |
39 | + return occurences; | |
40 | + } | |
41 | + | |
42 | + public void setOccurences(int occurences) { | |
43 | + this.occurences = occurences; | |
44 | + } | |
45 | + | |
46 | + public RssiID getId() { | |
47 | + return id; | |
48 | + } | |
49 | + | |
50 | + public Location getLocation() { | |
51 | + return location; | |
52 | + } | |
53 | + | |
54 | + public void setLocation(Location location) { | |
55 | + this.location = location; | |
56 | + } | |
57 | + | |
58 | + public AccessPoint getAccessPoint() { | |
59 | + return accessPoint; | |
60 | + } | |
61 | + | |
62 | + public void setAccessPoint(AccessPoint accessPoint) { | |
63 | + this.accessPoint = accessPoint; | |
64 | + } | |
65 | +} | ... | ... |
src/main/java/com/lo53_mobile_localization/core/entity/RssiID.java
0 โ 100644
1 | +++ a/src/main/java/com/lo53_mobile_localization/core/entity/RssiID.java | |
1 | +package com.lo53_mobile_localization.core.entity; | |
2 | + | |
3 | +import javax.persistence.Column; | |
4 | +import javax.persistence.Embeddable; | |
5 | +import java.io.Serializable; | |
6 | + | |
7 | +/** | |
8 | + * Created by Thomas on 18/05/2017. | |
9 | + */ | |
10 | + | |
11 | +@Embeddable | |
12 | +public class RssiID implements Serializable { | |
13 | + | |
14 | + @Column(name = "location_id") | |
15 | + private int locationId; | |
16 | + @Column(name = "accessPoint_id") | |
17 | + private int accessPointId; | |
18 | + | |
19 | + public int getLocationId() { | |
20 | + return locationId; | |
21 | + } | |
22 | + | |
23 | + public void setLocationId(int locationId) { | |
24 | + this.locationId = locationId; | |
25 | + } | |
26 | + | |
27 | + public int getAccessPointId() { | |
28 | + return accessPointId; | |
29 | + } | |
30 | + | |
31 | + public void setAccessPointId(int accessPointId) { | |
32 | + this.accessPointId = accessPointId; | |
33 | + } | |
34 | +} | ... | ... |
src/main/java/com/lo53_mobile_localization/core/repository/AccessPointDAO.java
0 โ 100644
1 | +++ a/src/main/java/com/lo53_mobile_localization/core/repository/AccessPointDAO.java | |
1 | +package com.lo53_mobile_localization.core.repository; | |
2 | + | |
3 | +import com.lo53_mobile_localization.core.entity.AccessPoint; | |
4 | + | |
5 | +/** | |
6 | + * Created by Thomas on 10/05/2017. | |
7 | + */ | |
8 | +public class AccessPointDAO extends DefaultDAO<AccessPoint>{ | |
9 | + | |
10 | + public AccessPointDAO() { | |
11 | + super(); | |
12 | + entityType = AccessPoint.class; | |
13 | + } | |
14 | + | |
15 | +} | ... | ... |
src/main/java/com/lo53_mobile_localization/core/repository/DefaultDAO.java
0 โ 100644
1 | +++ a/src/main/java/com/lo53_mobile_localization/core/repository/DefaultDAO.java | |
1 | +package com.lo53_mobile_localization.core.repository; | |
2 | + | |
3 | +import com.lo53_mobile_localization.core.entity.IEntity; | |
4 | +import com.lo53_mobile_localization.core.util.HibernateUtil; | |
5 | +import org.hibernate.HibernateException; | |
6 | +import org.apache.commons.beanutils.BeanUtils; | |
7 | +import org.hibernate.Session; | |
8 | +import org.hibernate.Transaction; | |
9 | +import org.hibernate.query.Query; | |
10 | +import org.slf4j.Logger; | |
11 | + | |
12 | +import java.lang.reflect.InvocationTargetException; | |
13 | +import java.util.List; | |
14 | + | |
15 | +/** | |
16 | + * Created by Thomas on 10/05/2017. | |
17 | + */ | |
18 | +public abstract class DefaultDAO<T extends IEntity> { | |
19 | + | |
20 | + protected Logger LOGGER; | |
21 | + protected Class<T> entityType; | |
22 | + | |
23 | + /** | |
24 | + * To insert an entity into the database | |
25 | + * @param entity | |
26 | + */ | |
27 | + public void insertEntity(T entity) { | |
28 | + Session session = HibernateUtil.getSession(); | |
29 | + Transaction tr = session.getTransaction(); | |
30 | + try { | |
31 | + tr.begin(); | |
32 | + session.persist(entity); | |
33 | + tr.commit(); | |
34 | + } catch(Exception e) { | |
35 | + LOGGER.error("error in insertEntity: " + e); | |
36 | + if(tr != null) | |
37 | + tr.rollback(); | |
38 | + throw e; | |
39 | + } | |
40 | + } | |
41 | + | |
42 | + /** | |
43 | + * To update an entity into the database | |
44 | + * @param id | |
45 | + * @param entity | |
46 | + */ | |
47 | + public void updateEntity(int id, T entity) throws Exception { | |
48 | + | |
49 | + T storedEntity = getEntity(id); | |
50 | + | |
51 | + try { | |
52 | + BeanUtils.copyProperties(storedEntity, entity); | |
53 | + } catch (IllegalAccessException|InvocationTargetException e) { | |
54 | + LOGGER.error("error in updateEntity: " + e); | |
55 | + throw e; | |
56 | + } | |
57 | + | |
58 | + Session session = HibernateUtil.getSession(); | |
59 | + Transaction tr = session.getTransaction(); | |
60 | + try { | |
61 | + tr.begin(); | |
62 | + session.update(entity); | |
63 | + tr.commit(); | |
64 | + } catch(Exception e) { | |
65 | + LOGGER.error("error in updateEntity: " + e); | |
66 | + if(tr != null) | |
67 | + tr.rollback(); | |
68 | + throw e; | |
69 | + } | |
70 | + } | |
71 | + | |
72 | + /** | |
73 | + * To remove an entity into the database | |
74 | + * @param id | |
75 | + */ | |
76 | + public void removeEntity(int id) throws Exception { | |
77 | + IEntity entity = getEntity(id); | |
78 | + | |
79 | + Session session = HibernateUtil.getSession(); | |
80 | + Transaction tr = session.getTransaction(); | |
81 | + try { | |
82 | + tr.begin(); | |
83 | + session.delete(entity); | |
84 | + tr.commit(); | |
85 | + } catch(Exception e) { | |
86 | + LOGGER.error("error in removeEntity: " + e); | |
87 | + if(tr != null) | |
88 | + tr.rollback(); | |
89 | + throw e; | |
90 | + } | |
91 | + } | |
92 | + | |
93 | + /** | |
94 | + * To get an entity from its id and class | |
95 | + * @param id | |
96 | + * @return | |
97 | + */ | |
98 | + @SuppressWarnings(value="unchecked") | |
99 | + public T getEntity(int id) throws Exception { | |
100 | + T entity = null; | |
101 | + | |
102 | + Session session = HibernateUtil.getSession(); | |
103 | + Transaction tr = session.getTransaction(); | |
104 | + try { | |
105 | + tr.begin(); | |
106 | + entity = (T) session.get(entityType.getCanonicalName(), id); | |
107 | + tr.commit(); | |
108 | + } catch(Exception e) { | |
109 | + LOGGER.error("error in getEntity: " + e); | |
110 | + if(tr != null) | |
111 | + tr.rollback(); | |
112 | + throw e; | |
113 | + } | |
114 | + | |
115 | + return entity; | |
116 | + } | |
117 | + | |
118 | + /** | |
119 | + * To get all entities | |
120 | + * @return | |
121 | + */ | |
122 | + public List getEntities() throws Exception { | |
123 | + List listEntities = null; | |
124 | + | |
125 | + Session session = HibernateUtil.getSession(); | |
126 | + try { | |
127 | + Query query = session.createQuery("from " + entityType.getCanonicalName()); | |
128 | + listEntities = query.list(); | |
129 | + }catch (HibernateException e) { | |
130 | + LOGGER.error("error in getEntities: " + e); | |
131 | + throw e; | |
132 | + } | |
133 | + return listEntities; | |
134 | + } | |
135 | + | |
136 | + | |
137 | + | |
138 | + | |
139 | +} | ... | ... |
src/main/java/com/lo53_mobile_localization/core/repository/LocationDAO.java
0 โ 100644
1 | +++ a/src/main/java/com/lo53_mobile_localization/core/repository/LocationDAO.java | |
1 | +package com.lo53_mobile_localization.core.repository; | |
2 | + | |
3 | +import com.lo53_mobile_localization.core.entity.Location; | |
4 | + | |
5 | +import java.util.List; | |
6 | + | |
7 | +/** | |
8 | + * Created by Thomas on 10/05/2017. | |
9 | + */ | |
10 | +public class LocationDAO extends DefaultDAO<Location> { | |
11 | + | |
12 | + public LocationDAO() { | |
13 | + super(); | |
14 | + entityType = Location.class; | |
15 | + } | |
16 | + | |
17 | +} | ... | ... |
src/main/java/com/lo53_mobile_localization/core/repository/MapDAO.java
0 โ 100644
1 | +++ a/src/main/java/com/lo53_mobile_localization/core/repository/MapDAO.java | |
1 | +package com.lo53_mobile_localization.core.repository; | |
2 | + | |
3 | +import com.lo53_mobile_localization.core.entity.AccessPoint; | |
4 | +import com.lo53_mobile_localization.core.entity.IEntity; | |
5 | +import com.lo53_mobile_localization.core.entity.Map; | |
6 | + | |
7 | +import java.util.List; | |
8 | + | |
9 | +/** | |
10 | + * Created by Thomas on 10/05/2017. | |
11 | + */ | |
12 | +public class MapDAO extends DefaultDAO<Map> { | |
13 | + | |
14 | + | |
15 | + public MapDAO() { | |
16 | + super(); | |
17 | + entityType = Map.class; | |
18 | + } | |
19 | +} | ... | ... |
src/main/java/com/lo53_mobile_localization/core/repository/RSSIDAO.java
0 โ 100644
1 | +++ a/src/main/java/com/lo53_mobile_localization/core/repository/RSSIDAO.java | |
1 | +package com.lo53_mobile_localization.core.repository; | |
2 | + | |
3 | +import com.lo53_mobile_localization.core.entity.Rssi; | |
4 | +import com.lo53_mobile_localization.core.entity.RssiID; | |
5 | +import com.lo53_mobile_localization.core.util.HibernateUtil; | |
6 | +import org.apache.commons.beanutils.BeanUtils; | |
7 | +import org.hibernate.HibernateException; | |
8 | +import org.hibernate.Session; | |
9 | +import org.hibernate.Transaction; | |
10 | +import org.hibernate.query.Query; | |
11 | +import org.slf4j.Logger; | |
12 | + | |
13 | +import javax.persistence.EntityManager; | |
14 | +import javax.persistence.EntityManagerFactory; | |
15 | +import javax.persistence.EntityTransaction; | |
16 | +import javax.persistence.Persistence; | |
17 | +import java.lang.reflect.InvocationTargetException; | |
18 | +import java.util.List; | |
19 | + | |
20 | + | |
21 | +/** | |
22 | + * Created by Thomas on 10/05/2017. | |
23 | + */ | |
24 | +public class RSSIDAO { | |
25 | + | |
26 | + protected Logger LOGGER; | |
27 | + protected EntityManagerFactory emf = Persistence.createEntityManagerFactory("rssi"); | |
28 | + protected EntityManager em = emf.createEntityManager(); | |
29 | + | |
30 | + public RSSIDAO() { | |
31 | + super(); | |
32 | + } | |
33 | + | |
34 | + /** | |
35 | + * To insert an entity into the database | |
36 | + * @param entity | |
37 | + */ | |
38 | + public void insertEntity(Rssi entity) { | |
39 | + Session session = HibernateUtil.getSession(); | |
40 | + EntityTransaction entr = em.getTransaction(); | |
41 | + try { | |
42 | + entr.begin(); | |
43 | + session.persist(entity); | |
44 | + entr.commit(); | |
45 | + } catch(Exception e) { | |
46 | + LOGGER.error("error in insertEntity: " + e); | |
47 | + if(entr != null) | |
48 | + entr.rollback(); | |
49 | + throw e; | |
50 | + } | |
51 | + } | |
52 | + | |
53 | + /** | |
54 | + * To update an entity into the database | |
55 | + * @param id | |
56 | + * @param entity | |
57 | + */ | |
58 | + public void updateEntity(RssiID id, Rssi entity) throws Exception { | |
59 | + | |
60 | + Rssi storedEntity = getEntity(id); | |
61 | + | |
62 | + try { | |
63 | + BeanUtils.copyProperties(storedEntity, entity); | |
64 | + } catch (IllegalAccessException|InvocationTargetException e) { | |
65 | + LOGGER.error("error in updateEntity: " + e); | |
66 | + throw e; | |
67 | + } | |
68 | + | |
69 | + Session session = HibernateUtil.getSession(); | |
70 | + Transaction tr = session.getTransaction(); | |
71 | + try { | |
72 | + tr.begin(); | |
73 | + session.update(entity); | |
74 | + tr.commit(); | |
75 | + } catch(Exception e) { | |
76 | + LOGGER.error("error in updateEntity: " + e); | |
77 | + if(tr != null) | |
78 | + tr.rollback(); | |
79 | + throw e; | |
80 | + } | |
81 | + } | |
82 | + | |
83 | + /** | |
84 | + * To remove an entity into the database | |
85 | + * @param id | |
86 | + */ | |
87 | + public void removeEntity(RssiID id) throws Exception { | |
88 | + | |
89 | + Rssi entity = getEntity(id); | |
90 | + | |
91 | + Session session = HibernateUtil.getSession(); | |
92 | + Transaction tr = session.getTransaction(); | |
93 | + try { | |
94 | + tr.begin(); | |
95 | + session.delete(entity); | |
96 | + tr.commit(); | |
97 | + } catch(Exception e) { | |
98 | + LOGGER.error("error in removeEntity: " + e); | |
99 | + if(tr != null) | |
100 | + tr.rollback(); | |
101 | + throw e; | |
102 | + } | |
103 | + } | |
104 | + | |
105 | + /** | |
106 | + * To get an entity from its id and class | |
107 | + * @param id | |
108 | + * @return | |
109 | + */ | |
110 | + @SuppressWarnings(value="unchecked") | |
111 | + public Rssi getEntity(RssiID id) throws Exception { | |
112 | + Rssi entity = null; | |
113 | + | |
114 | + Session session = HibernateUtil.getSession(); | |
115 | + Transaction tr = session.getTransaction(); | |
116 | + try { | |
117 | + tr.begin(); | |
118 | + String hql = "From Rssi r where r.id.locationId = :locationId AND r.id.accessPointId = :accessPointId"; | |
119 | + | |
120 | + | |
121 | + | |
122 | + String strLocId = Integer.toString(id.getLocationId()); | |
123 | + String strApId = Integer.toString(id.getAccessPointId()); | |
124 | + Query query = HibernateUtil.getSession().createQuery(hql); | |
125 | + query.setParameter("locationId",strApId); | |
126 | + query.setParameter("accessPointId", strApId); | |
127 | + entity = (Rssi)query.getSingleResult(); | |
128 | + tr.commit(); | |
129 | + } catch(Exception e) { | |
130 | + LOGGER.error("error in getEntity: " + e); | |
131 | + if(tr != null) | |
132 | + tr.rollback(); | |
133 | + throw e; | |
134 | + } | |
135 | + return entity; | |
136 | + } | |
137 | + | |
138 | + /** | |
139 | + * To get all entities | |
140 | + * @return | |
141 | + */ | |
142 | + public List getEntities() throws Exception { | |
143 | + List listEntities = null; | |
144 | + | |
145 | + Session session = HibernateUtil.getSession(); | |
146 | + try { | |
147 | + Query query = session.createQuery("from Rssi"); | |
148 | + listEntities = query.list(); | |
149 | + }catch (HibernateException e) { | |
150 | + LOGGER.error("error in getEntities: " + e); | |
151 | + throw e; | |
152 | + } | |
153 | + return listEntities; | |
154 | + } | |
155 | + | |
156 | +} | ... | ... |
src/main/java/com/lo53_mobile_localization/core/service/AccessPointService.java
0 โ 100644
1 | +++ a/src/main/java/com/lo53_mobile_localization/core/service/AccessPointService.java | |
1 | +package com.lo53_mobile_localization.core.service; | |
2 | + | |
3 | +import com.lo53_mobile_localization.core.entity.AccessPoint; | |
4 | +import com.lo53_mobile_localization.core.entity.IEntity; | |
5 | +import com.lo53_mobile_localization.core.repository.AccessPointDAO; | |
6 | + | |
7 | +import java.util.List; | |
8 | + | |
9 | +/** | |
10 | + * Created by Thomas on 10/05/2017. | |
11 | + */ | |
12 | +public class AccessPointService implements IService{ | |
13 | + | |
14 | + | |
15 | + protected AccessPointDAO accessPointDAO; | |
16 | + | |
17 | + public AccessPointService(){ | |
18 | + this.accessPointDAO = new AccessPointDAO(); | |
19 | + } | |
20 | + | |
21 | + public void storeEntity(IEntity entity) { | |
22 | + this.accessPointDAO.insertEntity((AccessPoint) entity); | |
23 | + } | |
24 | + | |
25 | + public void updateEntity(int id, IEntity entity) throws Exception { | |
26 | + this.accessPointDAO.updateEntity(id, (AccessPoint) entity); | |
27 | + } | |
28 | + | |
29 | + public void removeEntity(int id) throws Exception { | |
30 | + this.accessPointDAO.removeEntity(id); | |
31 | + } | |
32 | + | |
33 | + public IEntity getEntity(int id) throws Exception { | |
34 | + return this.accessPointDAO.getEntity(id); | |
35 | + } | |
36 | + | |
37 | + public List getEntities() throws Exception { | |
38 | + return this.accessPointDAO.getEntities(); | |
39 | + } | |
40 | +} | ... | ... |
src/main/java/com/lo53_mobile_localization/core/service/IService.java
0 โ 100644
1 | +++ a/src/main/java/com/lo53_mobile_localization/core/service/IService.java | |
1 | +package com.lo53_mobile_localization.core.service; | |
2 | + | |
3 | +import com.lo53_mobile_localization.core.entity.IEntity; | |
4 | + | |
5 | +import java.util.List; | |
6 | + | |
7 | +/** | |
8 | + * Created by Thomas on 10/05/2017. | |
9 | + */ | |
10 | +public interface IService { | |
11 | + | |
12 | + /** | |
13 | + * To store an entity | |
14 | + * @param entity | |
15 | + */ | |
16 | + void storeEntity(IEntity entity); | |
17 | + | |
18 | + /** | |
19 | + * To update an entity | |
20 | + * @param id | |
21 | + * @param entity | |
22 | + */ | |
23 | + void updateEntity(int id, final IEntity entity) throws Exception; | |
24 | + | |
25 | + /** | |
26 | + * To remove an entity | |
27 | + * @param id | |
28 | + */ | |
29 | + void removeEntity(int id) throws Exception; | |
30 | + | |
31 | + /** | |
32 | + * To get an entity by his id | |
33 | + * @param id | |
34 | + * @return | |
35 | + */ | |
36 | + IEntity getEntity(int id) throws Exception; | |
37 | + | |
38 | + /** | |
39 | + * To get the list of entities | |
40 | + * @return | |
41 | + */ | |
42 | + List getEntities() throws Exception; | |
43 | +} | ... | ... |
src/main/java/com/lo53_mobile_localization/core/service/LocationService.java
0 โ 100644
1 | +++ a/src/main/java/com/lo53_mobile_localization/core/service/LocationService.java | |
1 | +package com.lo53_mobile_localization.core.service; | |
2 | + | |
3 | +import com.lo53_mobile_localization.core.entity.IEntity; | |
4 | +import com.lo53_mobile_localization.core.entity.Location; | |
5 | +import com.lo53_mobile_localization.core.repository.LocationDAO; | |
6 | + | |
7 | +import java.util.List; | |
8 | + | |
9 | +/** | |
10 | + * Created by Thomas on 10/05/2017. | |
11 | + */ | |
12 | +public class LocationService implements IService { | |
13 | + | |
14 | + | |
15 | + protected LocationDAO locationDAO; | |
16 | + | |
17 | + public LocationService(){ | |
18 | + this.locationDAO = new LocationDAO(); | |
19 | + } | |
20 | + | |
21 | + public void storeEntity(IEntity entity) { | |
22 | + this.locationDAO.insertEntity((Location) entity); | |
23 | + } | |
24 | + | |
25 | + public void updateEntity(int id, IEntity entity) throws Exception { | |
26 | + this.locationDAO.updateEntity(id, (Location) entity); | |
27 | + } | |
28 | + | |
29 | + public void removeEntity(int id) throws Exception { | |
30 | + this.locationDAO.removeEntity(id); | |
31 | + } | |
32 | + | |
33 | + public IEntity getEntity(int id) throws Exception { | |
34 | + return this.locationDAO.getEntity(id); | |
35 | + } | |
36 | + | |
37 | + public List getEntities() throws Exception { | |
38 | + return this.locationDAO.getEntities(); | |
39 | + } | |
40 | +} | ... | ... |
src/main/java/com/lo53_mobile_localization/core/service/MapService.java
0 โ 100644
1 | +++ a/src/main/java/com/lo53_mobile_localization/core/service/MapService.java | |
1 | +package com.lo53_mobile_localization.core.service; | |
2 | + | |
3 | + | |
4 | +import com.lo53_mobile_localization.core.entity.IEntity; | |
5 | +import com.lo53_mobile_localization.core.entity.Map; | |
6 | +import com.lo53_mobile_localization.core.repository.MapDAO; | |
7 | + | |
8 | +import java.util.List; | |
9 | + | |
10 | +/** | |
11 | + * Created by Thomas on 10/05/2017. | |
12 | + */ | |
13 | +public class MapService implements IService { | |
14 | + | |
15 | + protected MapDAO mapDAO; | |
16 | + | |
17 | + public MapService(){ | |
18 | + this.mapDAO = new MapDAO(); | |
19 | + } | |
20 | + | |
21 | + public void storeEntity(IEntity entity) { | |
22 | + this.mapDAO.insertEntity((Map) entity); | |
23 | + } | |
24 | + | |
25 | + public void updateEntity(int id, IEntity entity) throws Exception { | |
26 | + this.mapDAO.updateEntity(id, (Map) entity); | |
27 | + } | |
28 | + | |
29 | + public void removeEntity(int id) throws Exception { | |
30 | + this.mapDAO.removeEntity(id); | |
31 | + } | |
32 | + | |
33 | + public IEntity getEntity(int id) throws Exception { | |
34 | + return this.mapDAO.getEntity(id); | |
35 | + } | |
36 | + | |
37 | + public List getEntities() throws Exception { | |
38 | + return this.mapDAO.getEntities(); | |
39 | + } | |
40 | +} | ... | ... |
src/main/java/com/lo53_mobile_localization/core/service/RSSIService.java
0 โ 100644
1 | +++ a/src/main/java/com/lo53_mobile_localization/core/service/RSSIService.java | |
1 | +package com.lo53_mobile_localization.core.service; | |
2 | + | |
3 | +import com.lo53_mobile_localization.core.entity.IEntity; | |
4 | +import com.lo53_mobile_localization.core.entity.Rssi; | |
5 | +import com.lo53_mobile_localization.core.entity.RssiID; | |
6 | +import com.lo53_mobile_localization.core.repository.RSSIDAO; | |
7 | + | |
8 | +import java.util.List; | |
9 | + | |
10 | +/** | |
11 | + * Created by Thomas on 10/05/2017. | |
12 | + */ | |
13 | +public class RSSIService { | |
14 | + | |
15 | + | |
16 | + protected RSSIDAO rssi_recordDAO; | |
17 | + | |
18 | + public RSSIService(){ | |
19 | + this.rssi_recordDAO = new RSSIDAO(); | |
20 | + } | |
21 | + | |
22 | + public void storeEntity(Rssi entity) { | |
23 | + this.rssi_recordDAO.insertEntity((Rssi) entity); | |
24 | + } | |
25 | + | |
26 | + public void updateEntity(RssiID id, Rssi entity) throws Exception { | |
27 | + this.rssi_recordDAO.updateEntity(id, (Rssi) entity); | |
28 | + } | |
29 | + | |
30 | + public void removeEntity(RssiID id) throws Exception { | |
31 | + this.rssi_recordDAO.removeEntity(id); | |
32 | + } | |
33 | + | |
34 | + public Rssi getEntity(RssiID id) throws Exception { | |
35 | + return this.rssi_recordDAO.getEntity(id); | |
36 | + } | |
37 | + | |
38 | + public List getEntities() throws Exception { | |
39 | + return this.rssi_recordDAO.getEntities(); | |
40 | + } | |
41 | +} | ... | ... |
src/main/java/com/lo53_mobile_localization/core/servlet/CalibrationServlet.java
0 โ 100644
1 | +++ a/src/main/java/com/lo53_mobile_localization/core/servlet/CalibrationServlet.java | |
1 | +package com.lo53_mobile_localization.core.servlet; | |
2 | + | |
3 | +import javax.servlet.http.HttpServlet; | |
4 | +import java.io.BufferedReader; | |
5 | +import java.io.FileReader; | |
6 | +import java.io.IOException; | |
7 | + | |
8 | +/** | |
9 | + * Created by Thomas on 18/05/2017. | |
10 | + */ | |
11 | +public class CalibrationServlet extends HttpServlet { | |
12 | + | |
13 | + | |
14 | + | |
15 | + | |
16 | + | |
17 | + private String getMacAdressFromArpTable(String ip) throws IOException { | |
18 | + // Open the ARP table too look up for this IP | |
19 | + BufferedReader in = new BufferedReader(new FileReader("/proc/net/arp")); | |
20 | + String strLine; | |
21 | + String macAddr = null; | |
22 | + | |
23 | + // Read File Line By Line | |
24 | + while ((strLine = in.readLine()) != null) { | |
25 | + // Find the matching IP | |
26 | + System.out.println(strLine); | |
27 | + if (strLine.contains(ip)) { | |
28 | + // Split the line | |
29 | + String[] table = strLine.split(" "); | |
30 | + // Retrieve the MAC Address | |
31 | + //macAddr = table[24]; | |
32 | + for (int i = 0; i < table.length; i++) { | |
33 | + if (table[i].length() == 17) | |
34 | + macAddr = table[i]; | |
35 | + //System.out.println("Table["+i+"] : "+table[i]); | |
36 | + } | |
37 | + } | |
38 | + } | |
39 | + return macAddr; | |
40 | + } | |
41 | + | |
42 | +} | ... | ... |
src/main/java/com/lo53_mobile_localization/core/util/HibernateUtil.java
0 โ 100644
1 | +++ a/src/main/java/com/lo53_mobile_localization/core/util/HibernateUtil.java | |
1 | +package com.lo53_mobile_localization.core.util; | |
2 | + | |
3 | +import org.hibernate.Session; | |
4 | +import org.hibernate.SessionFactory; | |
5 | +import org.hibernate.cfg.Configuration; | |
6 | + | |
7 | +/** | |
8 | + * Hibernate Utility class with a convenient method to get an open session. | |
9 | + */ | |
10 | +public class HibernateUtil { | |
11 | + | |
12 | + private static SessionFactory sessionFactory; | |
13 | + private static Session session = null; | |
14 | + | |
15 | + public static SessionFactory getSessionFactory() { | |
16 | + if(sessionFactory == null) { | |
17 | + sessionFactory = buildSessionFactory(); | |
18 | + } | |
19 | + return sessionFactory; | |
20 | + } | |
21 | + | |
22 | + private static SessionFactory buildSessionFactory() { | |
23 | + try { | |
24 | + // Create the SessionFactory from hibernate.cfg.xml | |
25 | + return new Configuration().configure().buildSessionFactory(); | |
26 | + } catch (Throwable ex) { | |
27 | + System.err.println( "Initial SessionFactory creation failed." + ex ); | |
28 | + throw new ExceptionInInitializerError(ex); | |
29 | + } | |
30 | + } | |
31 | + | |
32 | + public static void setSessionFactory(SessionFactory _sessionFactory) { | |
33 | + sessionFactory = _sessionFactory; | |
34 | + } | |
35 | + | |
36 | + public static Session getSession(){ | |
37 | + if(session == null || !session.isOpen()) { | |
38 | + session = getSessionFactory().openSession(); | |
39 | + } | |
40 | + return session; | |
41 | + } | |
42 | + | |
43 | + public static void setSession(Session _session) { | |
44 | + session = _session; | |
45 | + } | |
46 | +} | |
0 | 47 | \ No newline at end of file | ... | ... |
1 | +++ a/src/main/resources/hibernate.cfg.xml | |
1 | +<!DOCTYPE hibernate-configuration PUBLIC | |
2 | + "-//Hibernate/Hibernate Configuration DTD 3.0//EN" | |
3 | + "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd"> | |
4 | + | |
5 | +<hibernate-configuration> | |
6 | + <session-factory> | |
7 | + | |
8 | + <property name="hibernate.dialect"> org.hibernate.dialect.PostgreSQL82Dialect</property> | |
9 | + <property name="hibernate.connection.driver_class">org.postgresql.Driver</property> | |
10 | + <property name="hibernate.connection.username">postgres</property> | |
11 | + <property name="hibernate.connection.password"></property> | |
12 | + <property name="hibernate.connection.url">jdbc:postgresql://localhost:5432/LO53</property> | |
13 | + | |
14 | + <property name="connection_pool_size">1</property> | |
15 | + <property name="hbm2ddl.auto">create</property> | |
16 | + | |
17 | + <property name="show_sql">true</property> | |
18 | + | |
19 | + <mapping class="com.lo53_mobile_localization.core.entity.Map"/> | |
20 | + <mapping class="com.lo53_mobile_localization.core.entity.Location"/> | |
21 | + <mapping class="com.lo53_mobile_localization.core.entity.AccessPoint"/> | |
22 | + <mapping class="com.lo53_mobile_localization.core.entity.Rssi"/> | |
23 | + <mapping class="com.lo53_mobile_localization.core.entity.RssiID"/> | |
24 | + | |
25 | + | |
26 | + </session-factory> | |
27 | +</hibernate-configuration> | |
0 | 28 | \ No newline at end of file | ... | ... |
src/test/java/com/lo53_mobile_localization/core/helpers/HibernateTestHelper.java
0 โ 100644
1 | +++ a/src/test/java/com/lo53_mobile_localization/core/helpers/HibernateTestHelper.java | |
1 | +package com.lo53_mobile_localization.core.helpers; | |
2 | + | |
3 | +import com.lo53_mobile_localization.core.util.HibernateUtil; | |
4 | +import org.hibernate.SessionFactory; | |
5 | +import org.hibernate.cfg.Configuration; | |
6 | +import org.junit.After; | |
7 | +import org.junit.Before; | |
8 | + | |
9 | +/** | |
10 | + * Created by Thomas on 10/05/2017. | |
11 | + */ | |
12 | +public class HibernateTestHelper { | |
13 | + | |
14 | + @Before | |
15 | + public void setUp() throws Exception { | |
16 | + Configuration configuration = createTestingConfiguration(); | |
17 | + | |
18 | + SessionFactory sessionFactory = configuration.buildSessionFactory(); | |
19 | + HibernateUtil.setSessionFactory(sessionFactory); | |
20 | + } | |
21 | + | |
22 | + | |
23 | + protected Configuration createTestingConfiguration() { | |
24 | + Configuration configuration = new Configuration(); | |
25 | + configuration.configure(); | |
26 | + | |
27 | + configuration.setProperty("hibernate.dialect", "org.hibernate.dialect.PostgreSQL82Dialect"); | |
28 | + configuration.setProperty("hibernate.connection.driver_class", "org.postgresql.Driver"); | |
29 | + configuration.setProperty("hibernate.connection.username", "postgres"); | |
30 | + configuration.setProperty("hibernate.connection.password", ""); | |
31 | + configuration.setProperty("hibernate.connection.url", "jdbc:postgresql://localhost:5432/LO53"); | |
32 | + configuration.setProperty("hibernate.hbm2ddl.auto", "create"); | |
33 | + | |
34 | + return configuration; | |
35 | + } | |
36 | + | |
37 | + @After | |
38 | + public void tearDown() throws Exception { | |
39 | + if(HibernateUtil.getSession().isOpen()) | |
40 | + HibernateUtil.getSession().close(); | |
41 | + } | |
42 | + | |
43 | +} | ... | ... |
src/test/java/com/lo53_mobile_localization/core/service/AccessPointServiceTest.java
0 โ 100644
1 | +++ a/src/test/java/com/lo53_mobile_localization/core/service/AccessPointServiceTest.java | |
1 | +package com.lo53_mobile_localization.core.service; | |
2 | + | |
3 | +import com.lo53_mobile_localization.core.entity.AccessPoint; | |
4 | +import com.lo53_mobile_localization.core.entity.IEntity; | |
5 | +import com.lo53_mobile_localization.core.entity.Location; | |
6 | +import com.lo53_mobile_localization.core.repository.AccessPointDAO; | |
7 | +import com.lo53_mobile_localization.core.repository.LocationDAO; | |
8 | +import org.junit.Before; | |
9 | +import org.junit.Test; | |
10 | + | |
11 | +import java.util.ArrayList; | |
12 | + | |
13 | +import static org.junit.Assert.assertEquals; | |
14 | + | |
15 | +/** | |
16 | + * Created by Thomas on 10/05/2017. | |
17 | + */ | |
18 | +public class AccessPointServiceTest extends BaseServiceTest{ | |
19 | + | |
20 | + @Before | |
21 | + public void setUp() throws Exception { | |
22 | + super.setUp(); | |
23 | + service = new AccessPointService(); | |
24 | + | |
25 | + AccessPoint ap = new AccessPoint(); | |
26 | + | |
27 | + //ap.setMac_address("00:00:00:00:00:00"); | |
28 | + //ap.setLocation_id(genLocation()); | |
29 | + | |
30 | + AccessPointDAO accessPointDAO = new AccessPointDAO(); | |
31 | + accessPointDAO.insertEntity(ap); | |
32 | + | |
33 | + item = ap; | |
34 | + } | |
35 | + | |
36 | + protected ArrayList<IEntity> storeMultipleTestingItems(int nbItems) throws Exception { | |
37 | + ArrayList<IEntity> aps = new ArrayList<>(); | |
38 | + | |
39 | + int startingId = 1; | |
40 | + for(int i = startingId; i < nbItems + startingId; i++) { | |
41 | + AccessPoint testingAP = new AccessPoint(); | |
42 | + testingAP.setMac_address("AA:AA:AA:AA:AA:A" + i); | |
43 | + testingAP.setLocation_id(genLocation()); | |
44 | + | |
45 | + service.storeEntity(testingAP); | |
46 | + aps.add(testingAP); | |
47 | + } | |
48 | + | |
49 | + return aps; | |
50 | + } | |
51 | + | |
52 | + @Test | |
53 | + public void updateEntity() throws Exception { | |
54 | + AccessPoint ap = (AccessPoint) item; | |
55 | + ap.setMac_address("ZZ:ZZ:ZZ:ZZ:ZZ:ZZ"); | |
56 | + service.updateEntity(ap.getId(), ap); | |
57 | + | |
58 | + AccessPoint storedClient = (AccessPoint) service.getEntity(ap.getId()); | |
59 | + assertEquals(ap.getMac_address(), storedClient.getMac_address()); | |
60 | + } | |
61 | + | |
62 | + | |
63 | +} | ... | ... |
src/test/java/com/lo53_mobile_localization/core/service/BaseServiceTest.java
0 โ 100644
1 | +++ a/src/test/java/com/lo53_mobile_localization/core/service/BaseServiceTest.java | |
1 | +package com.lo53_mobile_localization.core.service; | |
2 | + | |
3 | +import com.lo53_mobile_localization.core.entity.AccessPoint; | |
4 | +import com.lo53_mobile_localization.core.entity.IEntity; | |
5 | +import com.lo53_mobile_localization.core.entity.Location; | |
6 | +import com.lo53_mobile_localization.core.entity.Map; | |
7 | +import com.lo53_mobile_localization.core.helpers.HibernateTestHelper; | |
8 | + | |
9 | +import com.lo53_mobile_localization.core.repository.AccessPointDAO; | |
10 | +import com.lo53_mobile_localization.core.repository.LocationDAO; | |
11 | +import com.lo53_mobile_localization.core.repository.MapDAO; | |
12 | +import org.junit.Test; | |
13 | + | |
14 | +import java.util.ArrayList; | |
15 | + | |
16 | +import static org.junit.Assert.assertEquals; | |
17 | +import static org.junit.Assert.assertTrue; | |
18 | + | |
19 | +/** | |
20 | + * Created by Thomas on 10/05/2017. | |
21 | + */ | |
22 | +public abstract class BaseServiceTest extends HibernateTestHelper { | |
23 | + | |
24 | + protected IService service; | |
25 | + protected IEntity item; | |
26 | + | |
27 | + @Test | |
28 | + public void storeEntity() throws Exception { | |
29 | + IEntity testingItem = storeMultipleTestingItems(1).get(0); | |
30 | + | |
31 | + assertTrue(service.getEntities().contains(testingItem)); | |
32 | + } | |
33 | + | |
34 | + protected abstract ArrayList<IEntity> storeMultipleTestingItems(int nbItems) throws Exception; | |
35 | + | |
36 | + @Test | |
37 | + public void removeEntity() throws Exception { | |
38 | + service.removeEntity(item.getId()); | |
39 | + assertEquals(0, service.getEntities().size()); | |
40 | + } | |
41 | + | |
42 | + | |
43 | + @Test | |
44 | + public void getEntity() throws Exception { | |
45 | + IEntity storedItem = service.getEntity(item.getId()); | |
46 | + assertEquals(item, storedItem); | |
47 | + } | |
48 | + | |
49 | + @Test | |
50 | + public void getEntities() throws Exception { | |
51 | + ArrayList<IEntity> addedItems = storeMultipleTestingItems(10); | |
52 | + ArrayList<IEntity> storedItems = (ArrayList<IEntity>) service.getEntities(); | |
53 | + | |
54 | + assertEquals(1 + addedItems.size(), storedItems.size()); | |
55 | + assertTrue(storedItems.contains(item)); | |
56 | + assertTrue(storedItems.containsAll(addedItems)); | |
57 | + } | |
58 | + | |
59 | + protected Map genMap(){ | |
60 | + | |
61 | + MapDAO mapDAO = new MapDAO(); | |
62 | + | |
63 | + Map map = new Map(); | |
64 | + map.setM_width(5); | |
65 | + map.setM_height(5); | |
66 | + map.setPx_height(10); | |
67 | + map.setPx_width(10); | |
68 | + map.setDescription("DescriptionTest" + 0); | |
69 | + | |
70 | + try { | |
71 | + mapDAO.insertEntity(map); | |
72 | + } catch (Exception ignored) {} | |
73 | + return map; | |
74 | + } | |
75 | + | |
76 | + protected Location genLocation() { | |
77 | + LocationDAO locationDAO = new LocationDAO(); | |
78 | + | |
79 | + Location location = new Location(); | |
80 | + location.setX(5); | |
81 | + location.setY(8); | |
82 | + | |
83 | + try { | |
84 | + locationDAO.insertEntity(location); | |
85 | + } catch (Exception ignored) {} | |
86 | + return location; | |
87 | + } | |
88 | + | |
89 | + protected AccessPoint genAP(){ | |
90 | + | |
91 | + AccessPointDAO apDAO = new AccessPointDAO(); | |
92 | + | |
93 | + AccessPoint ap = new AccessPoint(); | |
94 | + ap.setLocation_id(genLocation()); | |
95 | + ap.setMac_address("BB:BB:BB:BB:BB:BB"); | |
96 | + | |
97 | + try { | |
98 | + apDAO.insertEntity(ap); | |
99 | + }catch (Exception ignored){} | |
100 | + | |
101 | + return ap; | |
102 | + } | |
103 | + | |
104 | +} | ... | ... |
src/test/java/com/lo53_mobile_localization/core/service/LocationServiceTest.java
0 โ 100644
1 | +++ a/src/test/java/com/lo53_mobile_localization/core/service/LocationServiceTest.java | |
1 | +package com.lo53_mobile_localization.core.service; | |
2 | + | |
3 | +import com.lo53_mobile_localization.core.entity.IEntity; | |
4 | +import com.lo53_mobile_localization.core.entity.Location; | |
5 | +import com.lo53_mobile_localization.core.entity.Map; | |
6 | +import com.lo53_mobile_localization.core.repository.LocationDAO; | |
7 | +import com.lo53_mobile_localization.core.repository.MapDAO; | |
8 | +import org.junit.Before; | |
9 | +import org.junit.Test; | |
10 | + | |
11 | +import java.util.ArrayList; | |
12 | + | |
13 | +import static org.junit.Assert.assertEquals; | |
14 | + | |
15 | +/** | |
16 | + * Created by Thomas on 10/05/2017. | |
17 | + */ | |
18 | +public class LocationServiceTest extends BaseServiceTest { | |
19 | + | |
20 | + @Before | |
21 | + public void setUp() throws Exception { | |
22 | + super.setUp(); | |
23 | + service = new LocationService(); | |
24 | + | |
25 | + Location loc = new Location(); | |
26 | + loc.setMap(genMap()); | |
27 | + loc.setX(7); | |
28 | + loc.setY(7); | |
29 | + | |
30 | + LocationDAO locationDAO = new LocationDAO(); | |
31 | + locationDAO.insertEntity(loc); | |
32 | + | |
33 | + item = loc; | |
34 | + } | |
35 | + | |
36 | + protected ArrayList<IEntity> storeMultipleTestingItems(int nbItems) throws Exception { | |
37 | + ArrayList<IEntity> locs = new ArrayList<>(); | |
38 | + | |
39 | + int startingId = 1; | |
40 | + for(int i = startingId; i < nbItems + startingId; i++) { | |
41 | + Location testingLoc = new Location(); | |
42 | + testingLoc.setMap(genMap()); | |
43 | + testingLoc.setX(i); | |
44 | + testingLoc.setY(i); | |
45 | + | |
46 | + service.storeEntity(testingLoc); | |
47 | + locs.add(testingLoc); | |
48 | + } | |
49 | + | |
50 | + return locs; | |
51 | + } | |
52 | + | |
53 | + @SuppressWarnings("deprecation") | |
54 | + @Test | |
55 | + public void updateEntity() throws Exception { | |
56 | + Location loc = (Location) item; | |
57 | + loc.setY(100); | |
58 | + service.updateEntity(loc.getId(), loc); | |
59 | + | |
60 | + Location storedClient = (Location) service.getEntity(loc.getId()); | |
61 | + assertEquals((int)loc.getY(), (int)storedClient.getY()); | |
62 | + } | |
63 | +} | ... | ... |
src/test/java/com/lo53_mobile_localization/core/service/MapServiceTest.java
0 โ 100644
1 | +++ a/src/test/java/com/lo53_mobile_localization/core/service/MapServiceTest.java | |
1 | +package com.lo53_mobile_localization.core.service; | |
2 | + | |
3 | +import com.lo53_mobile_localization.core.entity.IEntity; | |
4 | +import com.lo53_mobile_localization.core.entity.Map; | |
5 | +import com.lo53_mobile_localization.core.repository.MapDAO; | |
6 | +import org.junit.Before; | |
7 | +import org.junit.Test; | |
8 | + | |
9 | +import java.util.ArrayList; | |
10 | + | |
11 | +import static org.junit.Assert.assertEquals; | |
12 | + | |
13 | +/** | |
14 | + * Created by Thomas on 10/05/2017. | |
15 | + */ | |
16 | +public class MapServiceTest extends BaseServiceTest { | |
17 | + | |
18 | + @Before | |
19 | + public void setUp() throws Exception { | |
20 | + super.setUp(); | |
21 | + service = new MapService(); | |
22 | + | |
23 | + Map map = new Map(); | |
24 | + | |
25 | + MapDAO mapDAO = new MapDAO(); | |
26 | + mapDAO.insertEntity(map); | |
27 | + | |
28 | + item = map; | |
29 | + } | |
30 | + | |
31 | + protected ArrayList<IEntity> storeMultipleTestingItems(int nbItems) throws Exception { | |
32 | + ArrayList<IEntity> maps = new ArrayList<>(); | |
33 | + | |
34 | + int startingId = 1; | |
35 | + for(int i = startingId; i < nbItems + startingId; i++) { | |
36 | + Map testingMap = new Map(); | |
37 | + testingMap.setDescription("Description" + i); | |
38 | + testingMap.setPx_height(i); | |
39 | + testingMap.setPx_width(i); | |
40 | + testingMap.setM_height(i); | |
41 | + testingMap.setM_width(i); | |
42 | + | |
43 | + service.storeEntity(testingMap); | |
44 | + maps.add(testingMap); | |
45 | + } | |
46 | + | |
47 | + return maps; | |
48 | + } | |
49 | + | |
50 | + @Test | |
51 | + public void updateEntity() throws Exception { | |
52 | + Map map = (Map) item; | |
53 | + map.setM_width(100); | |
54 | + service.updateEntity(map.getId(), map); | |
55 | + | |
56 | + Map storedClient = (Map) service.getEntity(map.getId()); | |
57 | + assertEquals((int)map.getM_width(), (int)storedClient.getM_width()); | |
58 | + } | |
59 | +} | ... | ... |
src/test/java/com/lo53_mobile_localization/core/service/RssiServiceTest.java
0 โ 100644
1 | +++ a/src/test/java/com/lo53_mobile_localization/core/service/RssiServiceTest.java | |
1 | +package com.lo53_mobile_localization.core.service; | |
2 | + | |
3 | +import com.lo53_mobile_localization.core.entity.*; | |
4 | +import com.lo53_mobile_localization.core.helpers.HibernateTestHelper; | |
5 | +import com.lo53_mobile_localization.core.repository.AccessPointDAO; | |
6 | +import com.lo53_mobile_localization.core.repository.LocationDAO; | |
7 | +import com.lo53_mobile_localization.core.repository.RSSIDAO; | |
8 | +import org.junit.Before; | |
9 | +import org.junit.Test; | |
10 | + | |
11 | +import java.util.ArrayList; | |
12 | + | |
13 | +import static org.junit.Assert.assertEquals; | |
14 | +import static org.junit.Assert.assertTrue; | |
15 | + | |
16 | +/** | |
17 | + * Created by Thomas on 10/05/2017. | |
18 | + */ | |
19 | +public class RssiServiceTest extends HibernateTestHelper{ | |
20 | + | |
21 | + Rssi item = null; | |
22 | + RSSIService service; | |
23 | + | |
24 | + @Before | |
25 | + public void setUp() throws Exception { | |
26 | + super.setUp(); | |
27 | + | |
28 | + service = new RSSIService(); | |
29 | + Rssi rssi = new Rssi(); | |
30 | + | |
31 | + Location loc = new Location(); | |
32 | + AccessPoint ap = new AccessPoint(); | |
33 | + | |
34 | + LocationDAO locationDAO = new LocationDAO(); | |
35 | + AccessPointDAO accessPointDAO = new AccessPointDAO(); | |
36 | + | |
37 | + locationDAO.insertEntity(loc); | |
38 | + accessPointDAO.insertEntity(ap); | |
39 | + | |
40 | + rssi.getId().setAccessPointId(ap.getId()); | |
41 | + rssi.getId().setLocationId(loc.getId()); | |
42 | + rssi.setValue(10); | |
43 | + rssi.setOccurences(6); | |
44 | + | |
45 | + RSSIDAO rssiDao = new RSSIDAO(); | |
46 | + rssiDao.insertEntity(rssi); | |
47 | + | |
48 | + item = rssi; | |
49 | + } | |
50 | + | |
51 | + protected ArrayList<Rssi> storeMultipleTestingItems(int nbItems) throws Exception { | |
52 | + | |
53 | + ArrayList<Rssi> rssis = new ArrayList<>(); | |
54 | + | |
55 | + int startingId = 1; | |
56 | + for(int i = startingId; i < nbItems + startingId; i++) { | |
57 | + Rssi testingRssi = new Rssi(); | |
58 | + | |
59 | + testingRssi.setOccurences(i); | |
60 | + testingRssi.setValue(i); | |
61 | + | |
62 | + Location loc = new Location(); | |
63 | + AccessPoint ap = new AccessPoint(); | |
64 | + | |
65 | + testingRssi.getId().setAccessPointId(ap.getId()); | |
66 | + testingRssi.getId().setLocationId(loc.getId()); | |
67 | + | |
68 | + service.storeEntity(testingRssi); | |
69 | + | |
70 | + rssis.add(testingRssi); | |
71 | + } | |
72 | + | |
73 | + return rssis; | |
74 | + } | |
75 | + | |
76 | + @Test | |
77 | + public void updateEntity() throws Exception { | |
78 | + Rssi rssi = item; | |
79 | + rssi.setValue(100); | |
80 | + | |
81 | + service.updateEntity(rssi.getId(), rssi); | |
82 | + | |
83 | + Rssi storedClient = (Rssi) service.getEntity(rssi.getId()); | |
84 | + | |
85 | + assertEquals((int)rssi.getValue(), (int)storedClient.getValue()); | |
86 | + } | |
87 | + | |
88 | + @Test | |
89 | + public void storeEntity() throws Exception { | |
90 | + Rssi testingItem = storeMultipleTestingItems(1).get(0); | |
91 | + | |
92 | + assertTrue(service.getEntities().contains(testingItem)); | |
93 | + } | |
94 | + | |
95 | + | |
96 | + @Test | |
97 | + public void removeEntity() throws Exception { | |
98 | + service.removeEntity(item.getId()); | |
99 | + assertEquals(0, service.getEntities().size()); | |
100 | + } | |
101 | + | |
102 | + | |
103 | + @Test | |
104 | + public void getEntity() throws Exception { | |
105 | + Rssi storedItem = service.getEntity(item.getId()); | |
106 | + assertEquals(item, storedItem); | |
107 | + } | |
108 | + | |
109 | + @Test | |
110 | + public void getEntities() throws Exception { | |
111 | + ArrayList<Rssi> addedItems = storeMultipleTestingItems(10); | |
112 | + ArrayList<Rssi> storedItems = (ArrayList<Rssi>) service.getEntities(); | |
113 | + | |
114 | + assertEquals(1 + addedItems.size(), storedItems.size()); | |
115 | + assertTrue(storedItems.contains(item)); | |
116 | + assertTrue(storedItems.containsAll(addedItems)); | |
117 | + } | |
118 | + | |
119 | + | |
120 | +} | ... | ... |