{"id":156283,"date":"2012-10-26T15:24:03","date_gmt":"2012-10-26T11:24:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=156283"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=156283","title":{"rendered":"<span class=\"post_title\">AnnotatedSQL lib \u2014 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 Android<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0434 Android \u043c\u044b \u0447\u0430\u0441\u0442\u043e \u043f\u0438\u0448\u0435\u043c \u0440\u0443\u043a\u0430\u043c\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b.<br \/>  \u0412\u0441\u0435 \u0431\u044b \u043d\u0438\u0447\u0435\u0433\u043e \u043a\u043e\u0433\u0434\u0430 \u044d\u0442\u043e \u043d\u0430\u0434\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0434\u043d\u0438 \u0440\u0430\u0437, \u043d\u043e \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u0442\u043e \u0447\u0430\u0441\u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043c\u0435\u043d\u044f\u0442\u044c \u0431\u0430\u0437\u0443.<br \/>  \u0418 \u043a\u043e\u0433\u0434\u0430 \u044d\u0442\u043e \u0440\u0430\u0437\u043c\u0430\u0437\u0430\u043d\u043e \u043f\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u043a\u043b\u0430\u0441\u0441\u0430\u043c \u2014 \u0442\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u0433\u0434\u0435-\u0442\u043e \u0437\u0430\u0431\u044b\u043b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c\/\u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043a\u043e\u043b\u043e\u043d\u043a\u0443, \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0442\u0438\u043f \u0438 \u043f\u0440\u043e\u0447\u0435\u0435. \u0415\u0449\u0435 \u0438 \u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442 \u00ab\u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442\u00bb: \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u043b \u043a\u043e\u043b\u043e\u043d\u043a\u0443 \u2014 \u0437\u0430\u0431\u044b\u043b \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u043f\u044f\u0442\u0443\u044e.<\/p>\n<p>  \u041a\u0430\u043a \u0440\u0430\u0437 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0438 \u0431\u044b\u043b\u0430 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043d\u0430 \u044d\u0442\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430.<\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<p>  <b><a href=\"https:\/\/github.com\/hamsterksu\/\">AnnotatedSQL<\/a><\/b> \u2014 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0442 \u043a\u043e\u0434 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u044f\u043c. \u0410\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438 <u>\u043d\u0435 runtime<\/u>, \u0430 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043e\u043c \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438. \u0422\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u043c\u044b \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u0430\u0444\u0435\u043a\u0442\u0438\u043c \u043f\u0440\u043e\u0435\u043a\u0442 \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 apk. <\/p>\n<p>  \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043b\u0438\u0431\u0430 \u0438 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u0434\u0432\u0443\u0445 \u043a\u0443\u0441\u043a\u043e\u0432: jar \u0441 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u044f\u043c\u0438 \u0438 \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430.<br \/>  \u0410\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438 \u043a\u043b\u0430\u0434\u0435\u043c \u0432 \u043f\u0430\u043f\u043a\u0443 libs \u043f\u0440\u043e\u0435\u043a\u0442\u0430. <br \/>  \u041d\u0443 \u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 IDE \u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430. <\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u044e\u0437\u0430\u0435\u0442\u0435 <i>Eclipse <\/i> \u2014 \u0442\u043e \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043f\u043b\u0430\u0433\u0438\u043d \u0432 \u043f\u0430\u043f\u043a\u0443 plugins \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c eclipse \u0435\u0441\u043b\u0438 \u043d\u0430\u0434\u043e. \u0434\u0430\u043b\u0435\u0435 \u0438\u0434\u0435\u043c \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 <i>Java Compiler -&gt; Annotation Processing<\/i> \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0442\u0430\u043c \u043f\u0430\u043f\u043a\u0443 \u043a\u0443\u0434\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u0442\u044c \u043a\u043e\u0434. \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e \u043d\u0430\u0434\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0443\u044e \u043f\u0430\u043f\u043a\u0443 <i>gen<\/i>. \u0414\u0430\u043b\u0435\u0435 \u0438\u0434\u0435\u043c \u0432 <i>Factory Path<\/i> \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430\u0448 \u043f\u043b\u0430\u0433\u0438\u043d. \u043d\u0443 \u0432\u043e\u0442 \u0438 \u0432\u0441\u0435. <\/p>\n<p>  \u0414\u043b\u044f <i>IDEA <\/i> \u043f\u043b\u0430\u0433\u0438\u043d \u043d\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u043b, \u0441\u043e\u0440\u0438<\/p>\n<p>  \u0414\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441 ant \u2014 \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u0435\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u0432 classpath \u0434\u0435\u043b\u0430\u0435\u043c \u044d\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a<br \/>  <code> ant clean release -cp ..\/com.annotatedsql.AnnotatedSQL_1.0.12.jar <\/code><\/p>\n<h5>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435<\/h5>\n<p>  \u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0431\u043e\u043b\u0435\u0435 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0432\u0435\u0449\u0430\u043c. \u0418\u0442\u0430\u043a \u043c\u044b \u0437\u043d\u0430\u0435\u043c \u043a\u0430\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043b\u0438\u0431\u0443, \u043d\u043e \u0447\u0442\u043e \u0436\u0435 \u043e\u043d\u0430 \u0434\u0435\u043b\u0430\u0435\u0442? <br \/>  \u041a\u0430\u043a \u044f \u0443\u0436\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u043b \u2014 \u043f\u043e \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u044f\u043c \u0433\u0435\u043d\u0435\u0440\u0438\u0442 \u0431\u0430\u0437\u0443, \u0442\u043e\u0447\u043d\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043a\u043b\u0430\u0441\u0441 \u0441 \u043f\u043e\u043c\u043e\u0448\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0431\u0443\u0434\u0435\u0442 \u0433\u0435\u043d\u0435\u0440\u0438\u0442\u0441\u044f \u0431\u0430\u0437\u0430. <br \/>  \u041a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e \u0431\u044b\u0432\u0430\u0435\u0442, \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u043a\u043e\u0434\u0435 \u043c\u044b \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0438 \u043a\u0430\u043a \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b \u0441 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0438 \u043a\u043e\u043b\u043e\u043d\u043a\u0430\u043c\u0438 \u0432 \u043d\u0435\u0439.<\/p>\n<p>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u0445 \u0441\u043f\u043e\u0440\u0442\u0438\u0432\u043d\u044b\u0445 \u0441\u043e\u0440\u0435\u0432\u043d\u043e\u0432\u0430\u043d\u0438\u0439. \u0412\u043e\u0437\u044c\u043c\u0435\u043c \u043f\u043e\u043a\u0430 \u0444\u0443\u0442\u0431\u043e\u043b\u044c\u043d\u044b\u0439 \u043c\u0430\u0442\u0447. <br \/>  \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0443 \u043d\u0430\u0441 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u0430\u0431\u043b\u0438\u0447\u0435\u043a \u0432 \u0431\u0430\u0437\u0435. \u042d\u0442\u043e \u2014 \u043a\u043e\u043c\u0430\u043d\u0434\u0430, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438 \u0447\u0435\u043c\u043f\u0438\u043e\u043d\u0430\u0442.\u041e\u043f\u0438\u0448\u0435\u043c \u0438\u0445.<br \/>  \u042f \u043e\u0431\u044b\u0447\u043d\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e \u0432\u0441\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b \u0432\u043d\u0443\u0442\u0440\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u043d\u0430\u0437\u043e\u0432\u0435\u043c \u0435\u0433\u043e FStore, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440. \u041a\u0440\u043e\u043c\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0442\u0430\u0431\u043b\u0438\u0447\u0435\u043a \u043e\u043d \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0431\u0430\u0437\u044b, \u0435\u0435 \u0432\u0435\u0440\u0441\u0438\u044e \u0438 \u0435\u0449\u0435 \u043f\u0430\u0440\u0443 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432.<\/p>\n<pre><code class=\"java\">public class FStore {  \tpublic static final String DB_NAME = &quot;fmanager&quot;; \tpublic static final int DB_VERSION = 34;  ..........         public static interface TeamTable{ \t\t \t\tString TABLE_NAME = &quot;team_table&quot;;  \t\tString ID = &quot;_id&quot;; \t\t \t\tString TITLE = &quot;title&quot;; \t\t \t\tString CHEMP_ID = &quot;chemp_id&quot;; \t\t \t\tString IS_FAV = &quot;is_fav&quot;;        }         public static interface ChempTable{  \t\tString TABLE_NAME = &quot;chemp_table&quot;; \t\t \t\tString CONTENT_PATH = &quot;chemps&quot;;  \t\tString ID = &quot;_id&quot;; \t\t \t\tString TITLE = &quot;title&quot;;        }         public static interface ResultsTable{  \t\tString CONTENT_PATH = &quot;results&quot;; \t\t \t\tString PATH_VIEW = &quot;results_view&quot;; \t\t \t\tString TABLE_NAME = &quot;result_table&quot;;  \t\tString ID = &quot;_id&quot;; \t\t \t\tString TEAM_ID = &quot;team_id&quot;; \t\t\t\t \t\tString POINTS = &quot;points&quot;; \t\t \t\tString CHEMP_ID = &quot;chemp_id&quot;; \t\t \t\tString GAMES = &quot;games&quot;; \t\t \t\tString WINS = &quot;wins&quot;;  \t\tString TIE = &quot;tie&quot;; \t\t \t\tString LOSE = &quot;lose&quot;; \t\t \t\tString BALLS = &quot;balls&quot;; \t\t \t\tString GOALS = &quot;goals&quot;; \t\t        }  ........ } <\/code><\/pre>\n<p>  \u041f\u043e\u043a\u0430 \u043d\u0435 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u043c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 CONTENT_PATH \u0438 \u0432\u0441\u044f\u043a\u0438\u0435 PATH_VIEW. \u042d\u0442\u043e \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u0434\u043b\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440. <br \/>  \u0418\u0442\u0430\u043a, \u043c\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043e\u0431\u044a\u0435\u043c \u0440\u0443\u0447\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b. <br \/>  \u0412 \u0434\u043e\u0431\u0430\u0432\u043e\u043a, \u0447\u0442\u043e \u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u0447\u0438\u0442\u0430\u0435\u043c\u043e\u0439 \u0444\u043e\u0440\u043c\u0435 \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0437\u0430\u0434\u0436\u043e\u0439\u043d\u0438\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0438 \u0434\u0440\u0443\u0433 \u043d\u0430 \u0434\u0440\u0443\u0433\u0430. \u042d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u043a\u043e\u043d\u0442\u0435\u043d\u0442 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0435, \u043d\u043e \u044f \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e \u044e\u0437\u0430\u0442\u044c <u>View<\/u>, \u0432\u043e\u0442 \u0435\u0449\u0435 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 sql \u043a\u0443\u0441\u043e\u043a \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f.<\/p>\n<p>  \u0414\u043b\u044f \u043e\u0431\u043b\u0435\u0433\u0447\u0435\u043d\u0438\u044f \u043d\u0430\u0448\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0438 \u0431\u044b\u043b\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u044d\u0442\u0430 \u043b\u0438\u0431\u0430. \u0418\u0442\u0430\u043a \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c. <\/p>\n<h5>Schema<\/h5>\n<p>  FStore \u2014 \u043f\u043e\u043c\u0435\u0447\u0430\u0435\u043c \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0435\u0439 <i>Schema(\u00abSqlSchema\u00bb)<\/i> \u0438 \u0437\u0430\u0434\u0430\u0435\u043c \u0438\u043c\u044f \u043a\u043b\u0430\u0441\u0441\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043a\u043e\u0434. \u043a\u043b\u0430\u0441\u0441 \u0431\u0443\u0434\u0435\u0442 \u0441\u0433\u0435\u043d\u0435\u0440\u0435\u043d \u0432 \u0442\u043e\u043c \u0436\u0435 \u043f\u0430\u043a\u0435\u0442\u0435, \u0433\u0434\u0435 \u043b\u0435\u0436\u0438\u0442 FStore<\/p>\n<pre><code class=\"java\"> @Schema(&quot;SqlSchema&quot;) public class FStore {  <\/code><\/pre>\n<h6>Table, Index, PrimaryKey<\/h6>\n<p>  \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0442\u0430\u0431\u043b\u0438\u0447\u0435\u043a \u043f\u043e\u043c\u0435\u0447\u0430\u0435\u043c \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0435\u0439 <i>Table <\/i> \u0438 \u0437\u0430\u0434\u0430\u0435\u043c \u0438\u043c\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u044b<\/p>\n<pre><code class=\"java\"> @Table(ChempTable.TABLE_NAME) public static interface ChempTable{  ................  @Table(TeamTable.TABLE_NAME) public static interface TeamTable{  ...............  @Table(ResultsTable.TABLE_NAME) @Index(name = &quot;chemp_index&quot;, columns = ResultsTable.CHEMP_ID) @PrimaryKey(collumns = {ResultsTable.TEAM_ID, ResultsTable.CHEMP_ID}) public static interface ResultsTable{  <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c \u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u0432\u0435\u0441\u0438\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u0430, \u0438 \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430. \u0422\u0443\u0442 \u0432\u0440\u043e\u0434\u0435 \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u044f<\/p>\n<h5>Column, PrimaryKey, Autoincrement, NotNull<\/h5>\n<p>  \u042d\u0442\u0438 \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u044b \u0434\u043b\u044f \u043f\u043e\u043b\u0435\u0439, \u0438 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b \u0432 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0442\u043e\u0436\u0435 <\/p>\n<pre><code class=\"java\">\t@Table(TeamTable.TABLE_NAME) \tpublic static interface TeamTable{ \t\t \t\tString TABLE_NAME = &quot;team_table&quot;;  \t\t@PrimaryKey \t\t@Column(type = Type.INTEGER) \t\tString ID = &quot;_id&quot;; \t\t \t\t@NotNull \t\t@Column(type = Type.TEXT) \t\tString TITLE = &quot;title&quot;; \t\t \t\t@Column(type = Type.INTEGER) \t\t@NotNull \t\tString CHEMP_ID = &quot;chemp_id&quot;; \t\t \t\t@Column(type = Type.INTEGER, defVal=&quot;0&quot;) \t\tString IS_FAV = &quot;is_fav&quot;; \t} <\/code><\/pre>\n<h5>SimpleView<\/h5>\n<p>  \u0418 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439, \u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u044b\u0439, \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438 \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u044d\u0442\u043e <i>SimpleView<\/i>.<br \/>  \u041e\u043d \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0432\u044c\u044e\u0445. \u0422\u0443\u0442 \u043f\u043e\u043a\u0430 \u0435\u0441\u0442\u044c INNER JOIN, \u043d\u043e \u044f \u0434\u043e\u0431\u0430\u0432\u043b\u044e \u0438 \u0434\u0440\u0443\u0433\u0438\u0435.<\/p>\n<pre><code class=\"java\">\t@SimpleView(ResultView.VIEW_NAME) \tpublic static interface ResultView{ \t\t \t\tString VIEW_NAME = &quot;result_view&quot;; \t\t \t\t@From(ResultsTable.TABLE_NAME) \t\tString TABLE_RESULT = &quot;table_result&quot;; \t\t \t\t@Join(srcTable = TeamTable.TABLE_NAME, srcColumn = TeamTable.ID, destTable = ResultView.TABLE_RESULT, destColumn = ResultsTable.TEAM_ID) \t\tString TABLE_TEAM = &quot;table_team&quot;; \t\t \t\t@Join(srcTable = ChempTable.TABLE_NAME, srcColumn = ChempTable.ID, destTable = ResultView.TABLE_RESULT, destColumn = ResultsTable.CHEMP_ID) \t\tString TABLE_CHEMP = &quot;table_chemp&quot;; \t} <\/code><\/pre>\n<p>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u043d\u0430\u0448\u0435\u0439 \u0432\u044c\u044e\u0445\u0438:<br \/>  <b><i>From<\/i><\/b> \u2014 \u044d\u0442\u043e \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0430 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u0443\u0434\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c from \ud83d\ude42 \u0412\u0430\u0436\u043d\u043e \u2014 \u0434\u0430\u043b\u0435\u0435 \u043f\u0440\u0438 \u0434\u0436\u043e\u0439\u043d\u0430\u0445 \u043d\u0430\u0434\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u0438\u043c\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0443 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u0443.<\/p>\n<p>  <b><i>Join<\/i><\/b> \u2014 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0434\u0436\u043e\u0439\u043d\u0430. \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430\u0434\u043e \u0437\u0430\u0434\u0436\u043e\u0439\u043d\u0438\u0442\u0441\u044f \u043d\u0430 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438 \u0447\u0435\u043c\u043f\u0438\u043e\u043d\u0430\u0442\u0430.<\/p>\n<p>  <i>srcTable <\/i> \u2014 \u044d\u0442\u043e \u0438\u0441\u0445\u043e\u0434\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430. <br \/>  <i>destTable<\/i> \u2014 \u044d\u0442\u043e \u043d\u043e\u0432\u043e\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b from\/join \u0432\u043e \u0432\u044c\u044e\u0445\u0435. \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 <\/p>\n<pre><code class=\"java\">String TABLE_RESULT = &quot;table_result&quot;; <\/code><\/pre>\n<p>  \u0415\u0449\u0435 <u>\u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u043e\u0435 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0435<\/u> \u2014 \u0432\u043e \u0432\u044c\u044e\u0445\u0435 \u0438\u043c\u0435\u043d\u0430 \u043f\u043e\u043b\u0435\u0439 \u0433\u0435\u043d\u0435\u0440\u044f\u0442\u0441\u044f \u043f\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0443:<br \/>  <code> &lt;variable_name&gt;_&lt;column_name&gt;<\/code><\/p>\n<p>  <u>\u0418\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 <\/u> \u2014 \u043f\u043e\u043b\u0435 <b>_id<\/b> \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b <i>From<\/i>, \u0447\u0442\u043e \u0431\u044b \u044e\u0437\u0430\u0442\u044c cursor \u0432 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u0435.<\/p>\n<p>  \u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0447\u0442\u043e \u0431\u044b \u043d\u0430\u0439\u0442\u0438 \u0438\u043d\u0434\u0435\u043a\u0441 \u043a\u043e\u043b\u043e\u043d\u043a\u0438 \u043d\u0430\u0434\u043e \u044e\u0437\u0430\u044c\u0442\u044c \u043d\u0435\u0447\u0442\u043e \u0432\u0440\u043e\u0434\u0435<\/p>\n<pre><code class=\"java\">columnPoints = cursor.getColumnIndex(ResultView.TABLE_RESULT + &quot;_&quot; + ResultsTable.POINTS); <\/code><\/pre>\n<p>  \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043d\u0435\u0443\u0434\u043e\u0431\u043d\u043e, \u043d\u043e \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0432   <\/p>\n<pre><code class=\"java\">public void changeCursor(Cursor cursor) { <\/code><\/pre>\n<p>  \u043c\u043e\u0436\u043d\u043e \u0435\u0449\u0435 \u0437\u0430\u044e\u0437\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u0445\u0435\u043b\u043f\u0435\u0440 <\/p>\n<pre><code class=\"java\">public class ColumnMappingHelper {  \tprivate HashMap&lt;String, HashMap&lt;String, Integer&gt;&gt; indexes = new HashMap&lt;String, HashMap&lt;String, Integer&gt;&gt;(); \t \tpublic int getColumn(Cursor c, String table, String column){ \t\tHashMap&lt;String, Integer&gt; columns = indexes.get(table); \t\tif(columns != null){ \t\t\tInteger index = columns.get(column); \t\t\tif(index != null) \t\t\t\treturn index; \t\t} \t\t \t\tif(columns == null){ \t\t\tcolumns = new HashMap&lt;String, Integer&gt;(); \t\t\tindexes.put(table, columns); \t\t} \t\tint index = c.getColumnIndex(table + &quot;_&quot; + column); \t\tcolumns.put(column, index); \t\treturn index; \t} }  <\/code><\/pre>\n<p>  \u0438 \u044e\u0437\u0430\u0435\u043c \u0435\u0433\u043e \u0442\u0430\u043a <\/p>\n<pre><code class=\"java\">mappingHelper.getColumn(cursor, ResultView.TABLE_RESULT, ResultsTable.POINTS); <\/code><\/pre>\n<h5>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/h5>\n<p>  \u0421\u0433\u0435\u043d\u0435\u0440\u0435\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b\u0438\u043a <b>SqlSchema.java<\/b><\/p>\n<pre><code class=\"java\">public class SqlSchema{ \t  \t private static final String SQL_CREATE_RESULT_TABLE = &quot;create table result_table( balls INTEGER, chemp_id INTEGER NOT NULL, games INTEGER NOT NULL, goals INTEGER, _id INTEGER, lose INTEGER, points INTEGER NOT NULL, team_id INTEGER NOT NULL, tie INTEGER, wins INTEGER, PRIMARY KEY( team_id, chemp_id))&quot;; \t  \t private static final String SQL_CREATE_CHEMP_TABLE = &quot;create table chemp_table( _id INTEGER PRIMARY KEY, title TEXT)&quot;; \t  \t private static final String SQL_CREATE_TEAM_TABLE = &quot;create table team_table( chemp_id INTEGER NOT NULL, _id INTEGER PRIMARY KEY, is_fav INTEGER DEFAULT (0), title TEXT NOT NULL)&quot;; \t   \t private static final String SQL_CREATE_CHEMP_INDEX = &quot;create index idx_chemp_index on result_table( chemp_id)&quot;; \t  \t  \t private static final String SQL_CREATE_RESULT_VIEW = &quot;CREATE VIEW result_view AS SELECT   table_chemp._id as table_chemp__id, table_chemp.title as table_chemp_title, table_result.balls as table_result_balls, table_result.chemp_id as table_result_chemp_id, table_result.games as table_result_games, table_result.goals as table_result_goals, table_result._id, table_result.lose as table_result_lose, table_result.points as table_result_points, table_result.team_id as table_result_team_id, table_result.tie as table_result_tie, table_result.wins as table_result_wins, table_team.chemp_id as table_team_chemp_id, table_team._id as table_team__id, table_team.is_fav as table_team_is_fav, table_team.title as table_team_title FROM result_table AS table_result JOIN chemp_table AS table_chemp ON table_chemp._id = table_result.chemp_id JOIN team_table AS table_team ON table_team._id = table_result.team_id&quot;; \t   \t public static void onCreate(final SQLiteDatabase db) { \t\tdb.execSQL(SQL_CREATE_RESULT_TABLE); \t\tdb.execSQL(SQL_CREATE_CHEMP_TABLE); \t\tdb.execSQL(SQL_CREATE_TEAM_TABLE); \t\tdb.execSQL(SQL_CREATE_SCORE_TABLE); \t\t \t\tdb.execSQL(SQL_CREATE_CHEMP_INDEX); \t\t \t\tdb.execSQL(SQL_CREATE_RESULT_VIEW); \t\tdb.execSQL(SQL_CREATE_SCORE_VIEW); \t} \t \tpublic static void onDrop(final SQLiteDatabase db){ \t\tdb.execSQL(&quot;drop table if exists result_table&quot;); \t\tdb.execSQL(&quot;drop table if exists chemp_table&quot;); \t\tdb.execSQL(&quot;drop table if exists team_table&quot;); \t\tdb.execSQL(&quot;drop table if exists score_table&quot;); \t\t \t\tdb.execSQL(&quot;drop view if exists result_view&quot;); \t\tdb.execSQL(&quot;drop view if exists score_view&quot;); \t} } <\/code><\/pre>\n<p>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442 \u0438\u0437 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0442\u0430\u0431\u043b\u0438\u0447\u0435\u043a \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f, \u0442.\u043a. \u0444\u0430\u0439\u043b \u0441\u0433\u0435\u043d\u0435\u0440\u0435\u043d \u0438 \u0447\u0435\u0442\u043a\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0432\u044b \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u0432 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0438 \u0442\u0430\u0431\u043b\u0438\u0446<\/p>\n<h5>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 SqlSchema<\/h5>\n<pre><code class=\"java\">\tprivate class AnnotationSql extends SQLiteOpenHelper {  \t\tpublic AnnotationSql(Context context) { \t\t\tsuper(context, FStore.DB_NAME, null, FStore.DB_VERSION); \t\t}  \t\t@Override \t\tpublic void onCreate(SQLiteDatabase db) { \t\t\tSqlSchema.onCreate(db); \t\t\tinit(db); \t\t}  \t\t@Override \t\tpublic void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { \t\t\tSqlSchema.onDrop(db); \t\t\tonCreate(db); \t\t}  \t} <\/code><\/pre>\n<h5>\u041f\u043b\u0430\u043d\u044b<\/h5>\n<p>  1. \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0442\u0438\u043f\u044b \u0434\u0436\u043e\u0439\u043d\u043e\u0432<br \/>  2. \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0430\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u044e <i>Columns<\/i> \u0434\u043b\u044f \u0434\u0436\u043e\u0439\u043d\u0430, \u0447\u0442\u043e \u0431\u044b \u0432\u044b\u0433\u0440\u0435\u0431\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0443\u0436\u043d\u044b\u0435 \u043f\u043e\u043b\u044f <\/p>\n<h5>\u0421\u0441\u044b\u043b\u043a\u0438<\/h5>\n<p>  \u0411\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0438: <a href=\"https:\/\/github.com\/hamsterksu\/Android-AnnotatedSQL-binaries\">github.com\/hamsterksu\/Android-AnnotatedSQL-binaries<\/a> <br \/>  \u0418\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438: <a href=\"https:\/\/github.com\/hamsterksu\/Android-AnnotatedSQL\">github.com\/hamsterksu\/Android-AnnotatedSQL<\/a><\/p>\n<p>  \u041b\u0438\u0446\u0435\u043d\u0437\u0438\u044f: MIT<\/p>\n<p>  \u0412\u0441\u0435\u043c \u0441\u043f\u0430\u0441\u0438\u0431\u043e!    \t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/156283\/\"> http:\/\/habrahabr.ru\/post\/156283\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041f\u0440\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u0434 Android \u043c\u044b \u0447\u0430\u0441\u0442\u043e \u043f\u0438\u0448\u0435\u043c \u0440\u0443\u043a\u0430\u043c\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0441\u0445\u0435\u043c\u044b.<br \/>  \u0412\u0441\u0435 \u0431\u044b \u043d\u0438\u0447\u0435\u0433\u043e \u043a\u043e\u0433\u0434\u0430 \u044d\u0442\u043e \u043d\u0430\u0434\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0434\u043d\u0438 \u0440\u0430\u0437, \u043d\u043e \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u0442\u043e \u0447\u0430\u0441\u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043c\u0435\u043d\u044f\u0442\u044c \u0431\u0430\u0437\u0443.<br \/>  \u0418 \u043a\u043e\u0433\u0434\u0430 \u044d\u0442\u043e \u0440\u0430\u0437\u043c\u0430\u0437\u0430\u043d\u043e \u043f\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u043a\u043b\u0430\u0441\u0441\u0430\u043c \u2014 \u0442\u043e \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u0433\u0434\u0435-\u0442\u043e \u0437\u0430\u0431\u044b\u043b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c\/\u0443\u0434\u0430\u043b\u0438\u0442\u044c \u043a\u043e\u043b\u043e\u043d\u043a\u0443, \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0442\u0438\u043f \u0438 \u043f\u0440\u043e\u0447\u0435\u0435. \u0415\u0449\u0435 \u0438 \u043a\u043e\u043f\u0438\u043f\u0430\u0441\u0442 \u00ab\u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442\u00bb: \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u043b \u043a\u043e\u043b\u043e\u043d\u043a\u0443 \u2014 \u0437\u0430\u0431\u044b\u043b \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u043f\u044f\u0442\u0443\u044e.<\/p>\n<p>  \u041a\u0430\u043a \u0440\u0430\u0437 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0438 \u0431\u044b\u043b\u0430 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043d\u0430 \u044d\u0442\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-156283","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/156283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=156283"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/156283\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=156283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=156283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=156283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}