{"id":312915,"date":"2020-11-10T21:00:25","date_gmt":"2020-11-10T21:00:25","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=312915"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=312915","title":{"rendered":"Spring: \u0423\u0441\u043a\u043e\u0440\u044f\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e XML"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442!<\/p>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u0439\u0434\u0435\u0442 \u0440\u0435\u0447\u044c \u043e \u0442\u043e\u043c \u043a\u0430\u043a \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043c\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0432 \u0440\u0435\u043b\u044f\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Spring Boot. \u041f\u0440\u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0441\u0442\u0440\u043e\u043a \u0437\u0430 \u0440\u0430\u0437 Hibernate \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0445 \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443, \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c\u0443 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044e, \u0435\u0441\u043b\u0438 \u0441\u0442\u0440\u043e\u043a \u043c\u043d\u043e\u0433\u043e. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0435\u0439\u0441 \u043a\u0430\u043a \u044d\u0442\u043e \u043e\u0431\u043e\u0439\u0442\u0438.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Spring Boot \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0421\u0423\u0411\u0414 -&gt; MS SQL Server, \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u044f\u0437\u044b\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f- Kotlin. \u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f \u0434\u043b\u044f Java \u0440\u0430\u0437\u043d\u0438\u0446\u044b \u043d\u0435 \u0431\u0443\u0434\u0435\u0442. <\/p>\n<p>  Entity \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c: <\/p>\n<pre><code class=\"kotlin\">@Entity @Table(schema = BaseEntity.schemaName, name = GoodsPrice.tableName) data class GoodsPrice(          @Id         @Column(name = &quot;GoodsPriceId&quot;)         @GeneratedValue(strategy =  GenerationType.IDENTITY)         override val id: Long,          @Column(name = &quot;GoodsId&quot;)         val goodsId: Long,          @Column(name = &quot;Price&quot;)         val price: BigDecimal,          @Column(name = &quot;PriceDate&quot;)         val priceDate: LocalDate ): BaseEntity(id) {         companion object {                 const val tableName: String = &quot;GoodsPrice&quot;         } }<\/code><\/pre>\n<p>  SQL:<\/p>\n<pre><code class=\"sql\">CREATE TABLE [dbo].[GoodsPrice]( \t[GoodsPriceId] [int] IDENTITY(1,1) NOT NULL, \t[GoodsId] [int] NOT NULL, \t[Price] [numeric](18, 2) NOT NULL, \t[PriceDate] nvarchar(10) NOT NULL,  CONSTRAINT [PK_GoodsPrice] PRIMARY KEY(GoodsPriceId))<\/code><\/pre>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0431\u0443\u0434\u0435\u043c \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0442\u044c, \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043f\u043e 20 000 \u0438 \u043f\u043e 50 000 \u0437\u0430\u043f\u0438\u0441\u0435\u0439.<\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u0445 \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c \u0438 \u043b\u043e\u0433\u0433\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u044f:<\/p>\n<pre><code class=\"kotlin\">@RestController @RequestMapping(&quot;\/api&quot;) class SaveDataController(private val goodsPriceService: GoodsPriceService) {      @PostMapping(&quot;\/saveViaJPA&quot;)     fun saveDataViaJPA(@RequestParam count: Int) {         val timeStart = System.currentTimeMillis()         goodsPriceService.saveAll(prepareData(count))         val secSpent = (System.currentTimeMillis() - timeStart) \/ 60         logger.info(&quot;Seconds spent : $secSpent&quot;)     }      private fun prepareData(count: Int) : List&lt;GoodsPrice&gt; {         val prices = mutableListOf&lt;GoodsPrice&gt;()         for (i in 1..count) {             prices.add(GoodsPrice(                     id = 0L,                     priceDate = LocalDate.now().minusDays(i.toLong()),                     goodsId = 1L,                     price = BigDecimal.TEN             ))         }         return prices     }     companion object {         private val logger = LoggerFactory.getLogger(SaveDataController::class.java)     } }<\/code><\/pre>\n<p>  \u0422\u0430\u043a \u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 GoodsPriceRepository<\/p>\n<pre><code class=\"kotlin\">@Service class GoodsPriceService(         private val goodsPriceRepository: GoodsPriceRepository ) {      private val xmlMapper: XmlMapper = XmlMapper()      fun saveAll(prices: List&lt;GoodsPrice&gt;) {         goodsPriceRepository.saveAll(prices)     } }<\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u0437\u043e\u0432\u0435\u043c \u043d\u0430\u0448 \u043c\u0435\u0442\u043e\u0434 saveDataViaJPA \u0434\u043b\u044f 20 000 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0438 50 000 \u0437\u0430\u043f\u0438\u0441\u0435\u0439.<\/p>\n<p>  \u041a\u043e\u043d\u0441\u043e\u043b\u044c:<\/p>\n<pre><code class=\"plaintext\">Hibernate: insert into dbo.GoodsPrice (GoodsId, Price, PriceDate) values (?, ?, ?) Hibernate: insert into dbo.GoodsPrice (GoodsId, Price, PriceDate) values (?, ?, ?) Hibernate: insert into dbo.GoodsPrice (GoodsId, Price, PriceDate) values (?, ?, ?) Hibernate: insert into dbo.GoodsPrice (GoodsId, Price, PriceDate) values (?, ?, ?) Hibernate: insert into dbo.GoodsPrice (GoodsId, Price, PriceDate) values (?, ?, ?) Hibernate: insert into dbo.GoodsPrice (GoodsId, Price, PriceDate) values (?, ?, ?) Hibernate: insert into dbo.GoodsPrice (GoodsId, Price, PriceDate) values (?, ?, ?) Hibernate: insert into dbo.GoodsPrice (GoodsId, Price, PriceDate) values (?, ?, ?) Hibernate: insert into dbo.GoodsPrice (GoodsId, Price, PriceDate) values (?, ?, ?) Hibernate: insert into dbo.GoodsPrice (GoodsId, Price, PriceDate) values (?, ?, ?) Hibernate: insert into dbo.GoodsPrice (GoodsId, Price, PriceDate) values (?, ?, ?) Hibernate: insert into dbo.GoodsPrice (GoodsId, Price, PriceDate) values (?, ?, ?) Hibernate: insert into dbo.GoodsPrice (GoodsId, Price, PriceDate) values (?, ?, ?) Hibernate: insert into dbo.GoodsPrice (GoodsId, Price, PriceDate) values (?, ?, ?) 2020-11-10 19:11:58.886  INFO 10364 --- [  restartedMain] xmlsave.controller.SaveDataController    : Seconds spent : 63<\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c \u0447\u0442\u043e Hibernate \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0432\u0441\u0442\u0430\u0432\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c, \u0442\u043e \u0435\u0441\u0442\u044c 20 000 \u0440\u0430\u0437. \u0418 \u043d\u0430 \u043c\u043e\u0435\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u044d\u0442\u043e \u0437\u0430\u043d\u044f\u043b\u043e 63 \u0441\u0435\u043a.<\/p>\n<p>  \u0414\u043b\u044f 50 000 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 166 \u0441\u0435\u043a.<\/p>\n<p>  <b>\u0420\u0435\u0448\u0435\u043d\u0438\u0435<\/b><\/p>\n<p>  \u0427\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c? \u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0438\u0434\u0435\u044f \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0431\u0443\u0444\u0444\u0435\u0440\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443:<\/p>\n<pre><code class=\"kotlin\">@Entity @Table(schema = BaseEntity.schemaName, name = SaveBuffer.tableName) data class SaveBuffer(          @Id         @Column(name = &quot;BufferId&quot;)         @GeneratedValue(strategy =  GenerationType.IDENTITY)         override val id: Long,          @Column(name = &quot;UUID&quot;)         val uuid: String,          @Column(name = &quot;xmlData&quot;)         val xmlData: String ): BaseEntity(id) {         companion object {                 const val tableName: String = &quot;SaveBuffer&quot;         } }<\/code><\/pre>\n<p>  SQL script \u0434\u043b\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445<\/p>\n<pre><code class=\"sql\">CREATE TABLE [dbo].[SaveBuffer]( \t[BufferId] [int] IDENTITY NOT NULL, \t[UUID] [varchar](64) NOT NULL, \t[xmlData] [xml] NULL,  CONSTRAINT [PK_SaveBuffer] PRIMARY KEY (BufferId)) <\/code><\/pre>\n<p>  \u0412 SaveDataController \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043c\u0435\u0442\u043e\u0434:<\/p>\n<pre><code class=\"kotlin\">@PostMapping(&quot;\/saveViaBuffer&quot;)     fun saveViaBuffer(@RequestParam count: Int) {         val timeStart = System.currentTimeMillis()         goodsPriceService.saveViaBuffer(prepareData(count))         val secSpent = (System.currentTimeMillis() - timeStart) \/ 60         logger.info(&quot;Seconds spent : $secSpent&quot;)     }<\/code><\/pre>\n<p>  \u0422\u0430\u043a \u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432 GoodsPriceService \u043c\u0435\u0442\u043e\u0434:<\/p>\n<pre><code class=\"kotlin\">@Transactional     fun saveViaBuffer(prices: List&lt;GoodsPrice&gt;) {         val uuid = UUID.randomUUID().toString()         val values = prices.map {             BufferDTO(                     goodsId = it.goodsId,                     priceDate = it.priceDate.format(DateTimeFormatter.ISO_DATE),                     price = it.price.stripTrailingZeros().toPlainString()             )         }         bufferRepository.save(                     SaveBuffer(                             id = 0L,                             uuid = uuid,                             xmlData = xmlMapper.writeValueAsString(values)                     )             )         goodsPriceRepository.saveViaBuffer(uuid)         bufferRepository.deleteAllByUuid(uuid)     }<\/code><\/pre>\n<p>  \u0414\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u043c \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 uuid, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043b\u0438\u0447\u0438\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c. \u0414\u0430\u043b\u0435\u0435 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043d\u0430\u0448\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0431\u0443\u0444\u0444\u0435\u0440 \u0442\u0435\u043a\u0441\u0442\u043e\u043c \u0432 \u0432\u0438\u0434\u0435 xml. \u0422\u043e \u0435\u0441\u0442\u044c \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 20 000 \u0438\u043d\u0441\u0435\u0440\u0442\u043e\u0432, \u0430 \u0432\u0441\u0435\u0433\u043e 1.<\/p>\n<p>  \u0418 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u043c \u043e\u0434\u043d\u0438\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c \u0442\u0438\u043f\u0430 Insert into\u2026 select \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0431\u0443\u0444\u0444\u0435\u0440\u0430 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 GoodsPrice.<\/p>\n<p>  GoodsPriceRepository \u0441 \u043c\u0435\u0442\u043e\u0434\u043e\u043c saveViaBuffer:<\/p>\n<pre><code class=\"kotlin\">@Repository interface GoodsPriceRepository: JpaRepository&lt;GoodsPrice, Long&gt; {     @Modifying     @Query(&quot;&quot;&quot;     insert into dbo.GoodsPrice( \tGoodsId, \tPrice, \tPriceDate \t) \tselect res.* \tfrom dbo.SaveBuffer buffer \t\tcross apply(select temp.n.value('goodsId[1]', 'int') as GoodsId \t\t\t, temp.n.value('price[1]', 'numeric(18, 2)') as Price \t\t\t, temp.n.value('priceDate[1]', 'nvarchar(10)') as PriceDate \t\t\tfrom buffer.xmlData.nodes('\/ArrayList\/item') temp(n)) res \t\t\twhere buffer.UUID = :uuid     &quot;&quot;&quot;, nativeQuery = true)     fun saveViaBuffer(uuid: String) }<\/code><\/pre>\n<p>  \u0418 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432 \u0431\u0430\u0437\u0435 \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u043f\u043e uuid \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0431\u0443\u0444\u0444\u0435\u0440\u0430.<\/p>\n<p>  \u0412\u044b\u0437\u043e\u0432\u0435\u043c \u043d\u0430\u0448 \u043c\u0435\u0442\u043e\u0434 saveViaBuffer \u0434\u043b\u044f 20 000 \u0441\u0442\u0440\u043e\u043a \u0438 50 000 \u0441\u0442\u0440\u043e\u043a: <\/p>\n<pre><code class=\"plaintext\">Hibernate: insert into dbo.SaveBuffer (UUID, xmlData) values (?, ?) Hibernate: insert into dbo.SaveBuffer (UUID, xmlData) values (?, ?) Hibernate: insert into dbo.SaveBuffer (UUID, xmlData) values (?, ?) Hibernate: insert into dbo.SaveBuffer (UUID, xmlData) values (?, ?) Hibernate:      insert into dbo.GoodsPrice( \tGoodsId, \tPrice, \tPriceDate \t) \tselect res.* \tfrom dbo.SaveBuffer buffer \t\tcross apply(select temp.n.value('goodsId[1]', 'int') as GoodsId \t\t\t, temp.n.value('price[1]', 'numeric(18, 2)') as Price \t\t\t, temp.n.value('priceDate[1]', 'nvarchar(10)') as PriceDate \t\t\tfrom buffer.xmlData.nodes('\/ArrayList\/item') temp(n)) res \t\t\twhere buffer.UUID = ?      Hibernate: select savebuffer0_.BufferId as bufferid1_1_, savebuffer0_.UUID as uuid2_1_, savebuffer0_.xmlData as xmldata3_1_ from dbo.SaveBuffer savebuffer0_ where savebuffer0_.UUID=? Hibernate: delete from dbo.SaveBuffer where BufferId=? Hibernate: delete from dbo.SaveBuffer where BufferId=? Hibernate: delete from dbo.SaveBuffer where BufferId=? Hibernate: delete from dbo.SaveBuffer where BufferId=? 2020-11-10 20:01:58.788  INFO 7224 --- [  restartedMain] xmlsave.controller.SaveDataController    : Seconds spent : 13<\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c \u043f\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0438\u0441\u0438 \u0434\u0430\u043d\u043d\u044b\u0445.<br \/>  \u0414\u043b\u044f 20 000 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 13 \u0441\u0435\u043a\u0443\u043d\u0434 \u0431\u044b\u043b\u043e 63.<br \/>  \u0414\u043b\u044f 50 000 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 27 \u0441\u0435\u043a\u0443\u043d\u0434 \u0431\u044b\u043b\u043e 166. <\/p>\n<p>  <a href=\"https:\/\/github.com\/cerrenesi\/xmlSave.git\" rel=\"nofollow\">\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442<\/a><\/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=\"https:\/\/habr.com\/ru\/post\/527402\/\"> https:\/\/habr.com\/ru\/post\/527402\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\u0412\u0441\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0442!<\/p>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u0439\u0434\u0435\u0442 \u0440\u0435\u0447\u044c \u043e \u0442\u043e\u043c \u043a\u0430\u043a \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043c\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0432 \u0440\u0435\u043b\u044f\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Spring Boot. \u041f\u0440\u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u0431\u043e\u043b\u044c\u0448\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0441\u0442\u0440\u043e\u043a \u0437\u0430 \u0440\u0430\u0437 Hibernate \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0445 \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443, \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c\u0443 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044e, \u0435\u0441\u043b\u0438 \u0441\u0442\u0440\u043e\u043a \u043c\u043d\u043e\u0433\u043e. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0435\u0439\u0441 \u043a\u0430\u043a \u044d\u0442\u043e \u043e\u0431\u043e\u0439\u0442\u0438.  <\/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-312915","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/312915","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=312915"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/312915\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=312915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=312915"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=312915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}