{"id":1683,"date":"2018-06-14T15:09:48","date_gmt":"2018-06-14T07:09:48","guid":{"rendered":"http:\/\/www.netxintai.com\/?p=1683"},"modified":"2018-06-15T15:36:40","modified_gmt":"2018-06-15T07:36:40","slug":"hibernate%e6%95%99%e7%a8%8b-%e4%b8%80%e5%af%b9%e5%a4%9a%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.netxintai.com\/?p=1683","title":{"rendered":"Hibernate\u6559\u7a0b-\u4e00\u5bf9\u591a\u914d\u7f6e"},"content":{"rendered":"<p>&nbsp;&nbsp;&nbsp;&nbsp;Hibernate\u7ef4\u62a4\u4e00\u5bf9\u591a\u5bf9\u5e94\u5173\u7cfb<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;\u6bd4\u5982\u5b66\u6821\u548c\u5b66\u751f\uff0c\u4e00\u4e2a\u5b66\u6821\u53ef\u4ee5\u6709\u591a\u4e2a\u5b66\u751f\uff0c\u4e00\u4e2a\u5b66\u751f\u53ea\u80fd\u5c5e\u4e8e\u4e00\u4e2a\u5b66\u6821\u3002\u8fd9\u5c31\u5c5e\u4e8e\u4e00\u5bf9\u591a\u5173\u7cfb<\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" src=\"\/ueditor\/php\/upload\/image\/20180614\/1528956560779753.png\" title=\"1528956560779753.png\" alt=\"image.png\"\/><\/p>\n<p>&nbsp;<span style=\"font-size: 20px; font-family: \u5fae\u8f6f\u96c5\u9ed1, &quot;Microsoft YaHei&quot;;\"><strong> &nbsp; &nbsp; \u7b2c\u4e00\u6b65\u521b\u5efa\u4e24\u4e2a\u5b9e\u4f53\u7c7b\uff0c\u7528\u6237\u7c7b\u548c\u5b66\u6821\u7c7b<br \/><\/strong><\/span><\/p>\n<p><span style=\"font-size: 20px; font-family: \u5fae\u8f6f\u96c5\u9ed1, &quot;Microsoft YaHei&quot;;\"><strong>&nbsp; &nbsp; &nbsp; <span style=\"font-size: 20px; font-family: \u5fae\u8f6f\u96c5\u9ed1, &quot;Microsoft YaHei&quot;; color: rgb(255, 0, 0);\">\u5b66\u751f\u7c7b<\/span><\/strong><\/span><\/p>\n<pre class=\"brush:java;toolbar:false\">package&nbsp;com.netxintai.domain;\r\n\r\npublic&nbsp;class&nbsp;User&nbsp;{\r\n\r\n\tprivate&nbsp;Integer&nbsp;u_id;\r\n\r\n\tprivate&nbsp;String&nbsp;username;\r\n\r\n\tprivate&nbsp;String&nbsp;password;\r\n\r\n\tprivate&nbsp;String&nbsp;sex;\r\n\r\n\tprivate&nbsp;String&nbsp;address;\r\n\t\r\n\t\/*\r\n\t&nbsp;*&nbsp;\u4e00\u4e2a\u5b66\u751f\u53ea\u6709\u4e00\u4e2a\u5b66\u6821&nbsp;\u6307\u5411\u4e3a\u76ee\u7684\r\n\t&nbsp;*&nbsp;\r\n\t&nbsp;*&nbsp;*\/\r\n\t\r\n\tprivate&nbsp;School&nbsp;school;\r\n\r\n\tpublic&nbsp;Integer&nbsp;getU_id()&nbsp;{\r\n\t\treturn&nbsp;u_id;\r\n\t}\r\n\r\n\tpublic&nbsp;void&nbsp;setU_id(Integer&nbsp;u_id)&nbsp;{\r\n\t\tthis.u_id&nbsp;=&nbsp;u_id;\r\n\t}\r\n\r\n\tpublic&nbsp;String&nbsp;getUsername()&nbsp;{\r\n\t\treturn&nbsp;username;\r\n\t}\r\n\r\n\tpublic&nbsp;void&nbsp;setUsername(String&nbsp;username)&nbsp;{\r\n\t\tthis.username&nbsp;=&nbsp;username;\r\n\t}\r\n\r\n\tpublic&nbsp;String&nbsp;getPassword()&nbsp;{\r\n\t\treturn&nbsp;password;\r\n\t}\r\n\r\n\tpublic&nbsp;void&nbsp;setPassword(String&nbsp;password)&nbsp;{\r\n\t\tthis.password&nbsp;=&nbsp;password;\r\n\t}\r\n\r\n\tpublic&nbsp;String&nbsp;getSex()&nbsp;{\r\n\t\treturn&nbsp;sex;\r\n\t}\r\n\r\n\tpublic&nbsp;void&nbsp;setSex(String&nbsp;sex)&nbsp;{\r\n\t\tthis.sex&nbsp;=&nbsp;sex;\r\n\t}\r\n\r\n\tpublic&nbsp;String&nbsp;getAddress()&nbsp;{\r\n\t\treturn&nbsp;address;\r\n\t}\r\n\r\n\tpublic&nbsp;void&nbsp;setAddress(String&nbsp;address)&nbsp;{\r\n\t\tthis.address&nbsp;=&nbsp;address;\r\n\t}\r\n\r\n\tpublic&nbsp;School&nbsp;getSchool()&nbsp;{\r\n\t\treturn&nbsp;school;\r\n\t}\r\n\r\n\tpublic&nbsp;void&nbsp;setSchool(School&nbsp;school)&nbsp;{\r\n\t\tthis.school&nbsp;=&nbsp;school;\r\n\t}\r\n\r\n\r\n}<\/pre>\n<p>&nbsp; &nbsp; <strong><span style=\"font-size: 20px; font-family: \u5fae\u8f6f\u96c5\u9ed1, &quot;Microsoft YaHei&quot;;\">&nbsp; \u5b66\u6821\u7c7b<\/span><\/strong><\/p>\n<pre class=\"brush:java;toolbar:false\">package&nbsp;com.netxintai.domain;\r\n\r\nimport&nbsp;java.util.HashSet;\r\nimport&nbsp;java.util.Set;\r\n\r\npublic&nbsp;class&nbsp;School&nbsp;{\r\n\t\r\n\tprivate&nbsp;Integer&nbsp;s_id;\r\n\t\r\n\tprivate&nbsp;String&nbsp;sname;\r\n\t\/*\r\n\t&nbsp;*&nbsp;\u4e00\u4e2a\u5b66\u6821\u53ef\u4ee5\u6709\u591a\u4e2a\u5b66\u751f\uff0chibernate\u89c4\u5b9a\u4e3aSet\u96c6\u5408\u5c01\u88c5\u591a\u4e2a\u6570\u636e\r\n\t&nbsp;*&nbsp;\r\n\t&nbsp;*&nbsp;*\/\r\n\tprivate&nbsp;Set&lt;User&gt;&nbsp;setUser=new&nbsp;HashSet&lt;User&gt;();\r\n\r\n\tpublic&nbsp;Integer&nbsp;getS_id()&nbsp;{\r\n\t\treturn&nbsp;s_id;\r\n\t}\r\n\r\n\tpublic&nbsp;void&nbsp;setS_id(Integer&nbsp;s_id)&nbsp;{\r\n\t\tthis.s_id&nbsp;=&nbsp;s_id;\r\n\t}\r\n\r\n\tpublic&nbsp;String&nbsp;getSname()&nbsp;{\r\n\t\treturn&nbsp;sname;\r\n\t}\r\n\r\n\tpublic&nbsp;void&nbsp;setSname(String&nbsp;sname)&nbsp;{\r\n\t\tthis.sname&nbsp;=&nbsp;sname;\r\n\t}\r\n\r\n\tpublic&nbsp;Set&lt;User&gt;&nbsp;getSetUser()&nbsp;{\r\n\t\treturn&nbsp;setUser;\r\n\t}\r\n\r\n\tpublic&nbsp;void&nbsp;setSetUser(Set&lt;User&gt;&nbsp;setUser)&nbsp;{\r\n\t\tthis.setUser&nbsp;=&nbsp;setUser;\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\r\n}<\/pre>\n<p><span style=\"font-size: 24px; font-family: \u5fae\u8f6f\u96c5\u9ed1, &quot;Microsoft YaHei&quot;;\"><strong>&nbsp;&nbsp;&nbsp;&nbsp;\u7b2c\u4e8c\u6b65\u914d\u7f6e\u4e24\u4e2a\u7c7b\u7684hibernate\u6620\u5c04\u6587\u4ef6<\/strong><\/span><\/p>\n<p>&nbsp; &nbsp; &nbsp;<span style=\"font-size: 20px; font-family: \u5fae\u8f6f\u96c5\u9ed1, &quot;Microsoft YaHei&quot;;\"> &nbsp; <strong>\u5b66\u751f\u7c7b\u6620\u5c04\u914d\u7f6e\u6587\u4ef6<\/strong><\/span><\/p>\n<pre class=\"brush:xml;toolbar:false\">&lt;?xml&nbsp;version=&quot;1.0&quot;&nbsp;encoding=&quot;UTF-8&quot;?&gt;\r\n&lt;!DOCTYPE&nbsp;hibernate-mapping&nbsp;PUBLIC&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&quot;-\/\/Hibernate\/Hibernate&nbsp;Mapping&nbsp;DTD&nbsp;3.0\/\/EN&quot;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&quot;http:\/\/www.hibernate.org\/dtd\/hibernate-mapping-3.0.dtd&quot;&gt;\r\n&lt;hibernate-mapping&gt;\r\n\t&lt;class&nbsp;name=&quot;com.netxintai.domain.User&quot;&nbsp;table=&quot;t_user&quot;&gt;\r\n\t\t&lt;id&nbsp;name=&quot;u_id&quot;&nbsp;column=&quot;u_id&quot;&gt;\r\n\t\t\t&lt;generator&nbsp;class=&quot;native&quot;&gt;&lt;\/generator&gt;\r\n\t\t&lt;\/id&gt;\r\n\t\t&lt;property&nbsp;name=&quot;username&quot;&nbsp;column=&quot;username&quot;&nbsp;\/&gt;\r\n\t\t&lt;property&nbsp;name=&quot;password&quot;&nbsp;column=&quot;password&quot;&nbsp;\/&gt;\r\n\t\t&lt;property&nbsp;name=&quot;sex&quot;&nbsp;column=&quot;sex&quot;&nbsp;\/&gt;\r\n\t\t&lt;property&nbsp;name=&quot;address&quot;&nbsp;column=&quot;address&quot;&nbsp;\/&gt;\r\n\t\t&lt;!--&nbsp;\u8868\u793a\u5b66\u751f\u6240\u5c5e\u5b66\u6821\r\n\t\t\tname\u5c5e\u6027:\u5b66\u751f\u7c7b\u5bf9\u5e94\u7684\u5b66\u6821\u540d\u79f0School\u7c7b&nbsp;\u5199school\r\n\t\t\tclass\u5c5e\u6027&nbsp;School\u7c7b\u7684\u5168\u8def\u5f84\r\n\t\t\tcolumn\u5c5e\u6027:&nbsp;\u5916\u952e\u540d\u79f0&nbsp;\r\n\t\t&nbsp;--&gt;\r\n\t\t&lt;many-to-one&nbsp;name=&quot;school&quot;&nbsp;class=&quot;com.netxintai.domain.School&quot;\r\n\t\t\tcolumn=&quot;suid&quot;&gt;&lt;\/many-to-one&gt;\r\n\r\n\t&lt;\/class&gt;\r\n\r\n&lt;\/hibernate-mapping&gt;<\/pre>\n<p>&nbsp;&nbsp;&nbsp;<span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1, &quot;Microsoft YaHei&quot;;\"><strong><span style=\"font-size: 20px;\">&nbsp;\u5b66\u6821\u7c7b\u6620\u5c04\u914d\u7f6e\u6587\u4ef6<\/span><\/strong><\/span><\/p>\n<pre class=\"brush:xml;toolbar:false\">&lt;?xml&nbsp;version=&quot;1.0&quot;&nbsp;encoding=&quot;UTF-8&quot;?&gt;\r\n&lt;!DOCTYPE&nbsp;hibernate-mapping&nbsp;PUBLIC&nbsp;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&quot;-\/\/Hibernate\/Hibernate&nbsp;Mapping&nbsp;DTD&nbsp;3.0\/\/EN&quot;\r\n&nbsp;&nbsp;&nbsp;&nbsp;&quot;http:\/\/www.hibernate.org\/dtd\/hibernate-mapping-3.0.dtd&quot;&gt;\r\n&lt;hibernate-mapping&gt;\r\n\t&lt;class&nbsp;name=&quot;com.netxintai.domain.School&quot;&nbsp;table=&quot;s_school&quot;&gt;\r\n\t\t&lt;id&nbsp;name=&quot;s_id&quot;&nbsp;column=&quot;s_id&quot;&gt;\r\n\t\t\t&lt;generator&nbsp;class=&quot;native&quot;&gt;&lt;\/generator&gt;\r\n\t\t&lt;\/id&gt;\r\n\t\t&lt;property&nbsp;name=&quot;sname&quot;&nbsp;column=&quot;sname&quot;\/&gt;\r\n\r\n\t\t&lt;!--&nbsp;\u5b66\u6821\u6620\u5c04\u6587\u4ef6\u4e2d\uff0c\u8868\u793a\u6240\u6709\u8054\u7cfb\u4eba&nbsp;\r\n\t\t\u4f7f\u7528Set\u6807\u7b7e\u8868\u793a\u6240\u6709\u8054\u7cfb\u4ebaset\u6807\u7b7e\u91cc\u9762\u6709name\u5c5e\u6027\uff0c\u5c5e\u6027\u503c\u5199\u5728\u5b66\u6821\u5b9e\u4f53\u7c7b\u91cc\u9762\u8868\u793a\u8054\u7cfb\u4eba\u7684set\u96c6\u5408\u540d\u79f0\r\n\t\t&nbsp;--&gt;\r\n\r\n\t\t&lt;set&nbsp;name=&quot;setUser&quot;&nbsp;cascade=&quot;save-update&quot;&nbsp;inverse=&quot;true&quot;&gt;\r\n\t\r\n\t\t&lt;!--&nbsp;\u4e00\u5bf9\u591a\u5efa\u8868\uff0c\u6709\u5916\u952e\r\n\t\t\thibernate\u673a\u5236\uff0c\u53cc\u5411\u7ef4\u62a4\u672a\u5b89\u68c0\uff0c\u5728\u4e00\u6838\u591a\u90a3\u4e00\u65b9\u90fd\u8981\u914d\u7f6e\u5916\u952e\uff0ccolumn\u5c5e\u6027\u503c:\u5916\u952e\u540d\u79f0\r\n\t\t&nbsp;--&gt;\r\n\t\t&lt;key&nbsp;column=&quot;suid&quot;&gt;&lt;\/key&gt;\r\n\t\t\t&lt;!--&nbsp;\u4e00\u5bf9\u591a\u914d\u7f6eclass\u91cc\u9762\u5199\u5b66\u751f\u5b9e\u4f53\u7c7b\u7684\u5168\u8def\u5f84&nbsp;--&gt;\r\n\t\t&lt;one-to-many&nbsp;class=&quot;com.netxintai.domain.User&quot;&gt;&lt;\/one-to-many&gt;\r\n\t&lt;\/set&gt;\r\n\t\r\n\t\t\r\n\t&lt;\/class&gt;\r\n\r\n\r\n\r\n&lt;\/hibernate-mapping&gt;<\/pre>\n<p>&nbsp;&nbsp;&nbsp;<span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1, &quot;Microsoft YaHei&quot;;\"><strong><span style=\"font-size: 20px;\">&nbsp;\u5728hibernate\u6587\u4ef6\u4e2d\u5f15\u5165\u4e24\u4e2a\u914d\u7f6e\u6587\u4ef6<\/span><\/strong><\/span><\/p>\n<pre class=\"brush:xml;toolbar:false\">&lt;?xml&nbsp;version=&quot;1.0&quot;&nbsp;encoding=&quot;UTF-8&quot;?&gt;\r\n&lt;!DOCTYPE&nbsp;hibernate-configuration&nbsp;PUBLIC\r\n\t&quot;-\/\/Hibernate\/Hibernate&nbsp;Configuration&nbsp;DTD&nbsp;3.0\/\/EN&quot;\r\n\t&quot;http:\/\/www.hibernate.org\/dtd\/hibernate-configuration-3.0.dtd&quot;&gt;\r\n&lt;hibernate-configuration&gt;\r\n\t&lt;session-factory&gt;\r\n\t&lt;!--&nbsp;\u914d\u7f6e\u6570\u636e\u4fe1\u606f&nbsp;--&gt;\r\n\t\r\n\t&lt;property&nbsp;name=&quot;hibernate.connection.driver_class&quot;&gt;com.mysql.jdbc.Driver&lt;\/property&gt;\r\n\t&lt;property&nbsp;name=&quot;hibernate.connection.url&quot;&gt;jdbc:mysql:\/\/\/mydb&lt;\/property&gt;\r\n\t&lt;property&nbsp;name=&quot;hibernate.connection.username&quot;&gt;root&lt;\/property&gt;\r\n\t&lt;property&nbsp;name=&quot;hibernate.connection.password&quot;&gt;123&lt;\/property&gt;\r\n\t\r\n\t&lt;!--&nbsp;\u914d\u7f6ehibernate\u4fe1\u606f&nbsp;\u53ef\u9009&nbsp;--&gt;\r\n\t&lt;!--&nbsp;\u8f93\u51fasql\u8bed\u53e5&nbsp;--&gt;\r\n\t&lt;property&nbsp;name=&quot;hibernate.show_sql&quot;&gt;true&lt;\/property&gt;\r\n\t&lt;!--&nbsp;\u683c\u5f0f\u5316sql\u8bed\u53e5&nbsp;--&gt;\r\n\t&lt;property&nbsp;name=&quot;hibernate.format_sql&quot;&gt;true&lt;\/property&gt;\r\n\t&lt;!--&nbsp;hibernate\u5e2e\u521b\u5efa\u8868&nbsp;\u9700\u8981\u914d\u7f6e\u540e\r\n\t\tupdate:\u5982\u679c\u5df2\u7ecf\u5b58\u5728\u8868\uff0c\u66f4\u65b0\uff0c\u5982\u679c\u6ca1\u6709&nbsp;\u521b\u5efa\u8868\r\n\t&nbsp;--&gt;\r\n\t&lt;property&nbsp;name=&quot;hibernate.hbm2ddl.auto&quot;&gt;update&lt;\/property&gt;\r\n\t&lt;!--&nbsp;\u914d\u7f6e\u6570\u636e\u5e93\u65b9\u8a00&nbsp;--&gt;\r\n\t&lt;property&nbsp;name=&quot;hibernate.dialect&quot;&gt;org.hibernate.dialect.MySQLDialect&lt;\/property&gt;\r\n\t&lt;!--&nbsp;\u628a\u6620\u5c04\u6587\u4ef6\u653e\u5230\u6838\u5fc3\u914d\u7f6e\u6587\u4ef6\u4e2d&nbsp;--&gt;\r\n\t&lt;property&nbsp;name=&quot;hibernate.current_session_context_class&quot;&gt;thread&lt;\/property&gt;\r\n\t&lt;!--&nbsp;\u5f15\u5165\u914d\u7f6e\u6587\u4ef6&nbsp;--&gt;\r\n\t&lt;mapping&nbsp;resource=&quot;com\/netxintai\/domain\/School.hbm.xml&quot;\/&gt;\r\n\t&lt;mapping&nbsp;resource=&quot;com\/netxintai\/domain\/User.hbm.xml&quot;\/&gt;\r\n\r\n\t&lt;\/session-factory&gt;\r\n\r\n\r\n&lt;\/hibernate-configuration&gt;<\/pre>\n<p><span style=\"font-size: 24px;\"><strong><span style=\"color: rgb(255, 0, 0);\">&nbsp; &nbsp;<span style=\"color: rgb(255, 0, 0); font-family: \u5fae\u8f6f\u96c5\u9ed1, &quot;Microsoft YaHei&quot;;\">\u6d4b\u8bd5\u4ee3\u7801<\/span><\/span><\/strong><\/span><\/p>\n<pre class=\"brush:java;toolbar:false\">package&nbsp;com.netxintai.dome;\r\n\r\nimport&nbsp;org.hibernate.Session;\r\nimport&nbsp;org.hibernate.SessionFactory;\r\nimport&nbsp;org.hibernate.Transaction;\r\nimport&nbsp;org.junit.Test;\r\n\r\nimport&nbsp;com.netxintai.domain.School;\r\nimport&nbsp;com.netxintai.domain.User;\r\nimport&nbsp;com.netxintai.utils.HiberntaeUtils;\r\n\r\npublic&nbsp;class&nbsp;DomeTEST&nbsp;{\r\n\r\n\tprivate&nbsp;SessionFactory&nbsp;sessionFactory;\r\n\tprivate&nbsp;Session&nbsp;session;\r\n\tprivate&nbsp;Transaction&nbsp;tr;\r\n\r\n\t@Test\r\n\tpublic&nbsp;void&nbsp;DomeTest()&nbsp;{\r\n\r\n\t\ttry&nbsp;{\r\n\r\n\t\t\tsessionFactory&nbsp;=&nbsp;HiberntaeUtils.getsessionFactory();\r\n\t\t\tsession&nbsp;=&nbsp;sessionFactory.openSession();\r\n\t\t\ttr&nbsp;=&nbsp;session.beginTransaction();\r\n\r\n\t\t\tUser&nbsp;user&nbsp;=&nbsp;new&nbsp;User();\r\n\t\t\tSchool&nbsp;school&nbsp;=&nbsp;new&nbsp;School();\r\n\r\n\t\t\tuser.setAddress(&quot;\u957f\u5b89&quot;);\r\n\t\t\tuser.setPassword(&quot;147&quot;);\r\n\t\t\tuser.setUsername(&quot;\u674e\u4e16\u6c11&quot;);\r\n\r\n\t\t\tschool.setSname(&quot;\u957f\u5b89\u5927\u5b66&quot;);\r\n\r\n\t\t\tuser.setSchool(school);\r\n\t\t\tschool.getSetUser().add(user);\r\n\r\n\t\t\tsession.save(school);\r\n\r\n\t\t\ttr.commit();\r\n\r\n\t\t}&nbsp;catch&nbsp;(Exception&nbsp;e)&nbsp;{\r\n\t\t\t\/\/&nbsp;TODO:&nbsp;handle&nbsp;exception\r\n\t\t\ttr.rollback();\r\n\t\t}&nbsp;finally&nbsp;{\r\n\r\n\t\t}\r\n\r\n\t}\r\n\r\n}<\/pre>\n<p>&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong><span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1, &quot;Microsoft YaHei&quot;; font-size: 24px;\">\u6d4b\u8bd5\u7ed3\u679c<\/span><\/strong><\/p>\n<p><img decoding=\"async\" src=\"\/ueditor\/php\/upload\/image\/20180614\/1528960133524557.png\" title=\"1528960133524557.png\" alt=\"image.png\"\/><\/p>\n<p>&nbsp;&nbsp;\u5907\u6ce8:\u4e0d\u61c2Hibernateutils\u5de5\u5177\u7c7b\u7684\u70b9\u51fb\u8fd9\u91cc <a href=\"http:\/\/www.netxintai.com\/?p=660\" style=\"text-decoration:none;font-size:24px \">hibernateUtils\u5de5\u5177\u7c7b<\/a><\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;&nbsp;&nbsp;&nbsp;Hibernate\u7ef4\u62a4\u4e00\u5bf9\u591a\u5bf9\u5e94\u5173\u7cfb &nbsp;&nbsp; <span class=\"ellipsis\">&hellip;<\/span> <span class=\"more-link-wrap\"><a href=\"https:\/\/www.netxintai.com\/?p=1683\" class=\"more-link\"><span>Read More &rarr;<\/span><\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":1491,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[210],"tags":[81,110],"_links":{"self":[{"href":"https:\/\/www.netxintai.com\/index.php?rest_route=\/wp\/v2\/posts\/1683"}],"collection":[{"href":"https:\/\/www.netxintai.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.netxintai.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.netxintai.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.netxintai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1683"}],"version-history":[{"count":8,"href":"https:\/\/www.netxintai.com\/index.php?rest_route=\/wp\/v2\/posts\/1683\/revisions"}],"predecessor-version":[{"id":1691,"href":"https:\/\/www.netxintai.com\/index.php?rest_route=\/wp\/v2\/posts\/1683\/revisions\/1691"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.netxintai.com\/index.php?rest_route=\/wp\/v2\/media\/1491"}],"wp:attachment":[{"href":"https:\/\/www.netxintai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1683"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.netxintai.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1683"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.netxintai.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}