發表文章

目前顯示的是 3月 21, 2019的文章

English units

圖片
System of units formerly used in England This article is about the historical development of measurement in England up to 1826. For the non-metric measurement system used in the UK, see Imperial units. For the system currently used in the US with similar unit names, see United States customary units. For an overview of both UK and US non-metric units, see Imperial and US customary measurement systems. English units are the units of measurement that were used in England up to 1826 (when they were replaced by Imperial units), which evolved as a combination of the Anglo-Saxon and Roman systems of units. Various standards have applied to English units at different times, in different places, and for different applications. The two main sets of English units were the Winchester Units, in effect from 1495–1587, as reaffirmed by King Henry VII, and the Exchequer Standards, in effect from 1588–1825, as first defined by Queen Elizabeth I. [1] [2] The units were replaced by Imperial Units in 18

spring-data-jpa NamedQuery lookup mechanism causes transaction errors when calling @Procedure methods on repository

圖片
0 During the lookup mechanism for repository methods annotated @NamedQuery, several exceptions may be thrown and handled (e.g. if the named query doesn't have a count query specified). This causes the current transaction to be marked as rollback only. If a method annotated @Procedure is called later on (on the same thread I think, looking at the way the transaction manager is acquired it seems to be in a threadlocal somewhere?) the same transaction is used and fails. Subsequent calls to the same repository succeed as the method metadata has already been looked up. Should state I'm using CDI and container managed transactions rather than Spring-managed. Is this a known bug? It seems to be similar to another bug (https://jira.spring.io/browse/DATAJPA-617). I'm running under version 2.10.0.Final and Wildfly 12. hibernate spring-data-jpa wildfly share | improve this question asked Sep 26 '18 at 16:33 Chris Cooper Chris Cooper 444 2 11 25