From 1da8dbc450c232284e283c8e3f0106dab071ab0b Mon Sep 17 00:00:00 2001 From: Craig Andrews Date: Fri, 10 Feb 2017 16:31:18 -0500 Subject: [PATCH] Initial commit --- .gitignore | 19 + .mvn/wrapper/maven-wrapper.jar | Bin 0 -> 49502 bytes .mvn/wrapper/maven-wrapper.properties | 1 + .pmdruleset.xml | 62 +++ .rultor.yml | 11 + .travis.yml | 5 + LICENSE | 502 ++++++++++++++++++ README.md | 31 ++ mvnw | 233 ++++++++ mvnw.cmd | 145 +++++ pom.xml | 239 +++++++++ pubring.gpg.asc | 63 +++ secring.gpg.asc | 120 +++++ settings.xml.asc | 20 + .../checkstyle/checkstyle-non-fatal.xml | 190 +++++++ shared/config/checkstyle/checkstyle.xml | 101 ++++ ...ingCacheManagerToJCacheManagerAdapter.java | 148 ++++++ .../springcache/SpringCacheRegionFactory.java | 34 ++ ...SpringCacheRegionFactoryAutoConfigure.java | 20 + ...ngCacheRegionFactoryBeanPostProcessor.java | 46 ++ .../springcache/SpringCacheToJCache.java | 359 +++++++++++++ .../cache/springcache/package-info.java | 11 + src/main/resources/META-INF/spring.factories | 2 + .../hibernate/test/domain/Account.java | 38 ++ .../hibernate/test/domain/Event.java | 75 +++ .../hibernate/test/domain/EventManager.java | 241 +++++++++ .../test/domain/HolidayCalendar.java | 66 +++ .../hibernate/test/domain/Item.java | 37 ++ .../hibernate/test/domain/Person.java | 112 ++++ .../hibernate/test/domain/PhoneNumber.java | 82 +++ .../hibernate/test/domain/UuidItem.java | 37 ++ .../hibernate/test/domain/VersionedItem.java | 19 + .../hibernate-config/domain/Account.hbm.xml | 25 + .../hibernate-config/domain/Event.hbm.xml | 32 ++ .../domain/HolidayCalendar.hbm.xml | 27 + .../hibernate-config/domain/Item.hbm.xml | 34 ++ .../hibernate-config/domain/Person.hbm.xml | 46 ++ .../domain/PhoneNumber.hbm.xml | 26 + .../hibernate-config/hibernate.cfg.xml | 37 ++ src/test/resources/hibernate.properties | 18 + src/test/resources/log4j.properties | 17 + 41 files changed, 3331 insertions(+) create mode 100644 .gitignore create mode 100644 .mvn/wrapper/maven-wrapper.jar create mode 100644 .mvn/wrapper/maven-wrapper.properties create mode 100644 .pmdruleset.xml create mode 100644 .rultor.yml create mode 100644 .travis.yml create mode 100644 LICENSE create mode 100644 README.md create mode 100755 mvnw create mode 100644 mvnw.cmd create mode 100644 pom.xml create mode 100644 pubring.gpg.asc create mode 100644 secring.gpg.asc create mode 100644 settings.xml.asc create mode 100644 shared/config/checkstyle/checkstyle-non-fatal.xml create mode 100644 shared/config/checkstyle/checkstyle.xml create mode 100644 src/main/java/com/integralblue/hibernate/cache/springcache/SpringCacheManagerToJCacheManagerAdapter.java create mode 100644 src/main/java/com/integralblue/hibernate/cache/springcache/SpringCacheRegionFactory.java create mode 100644 src/main/java/com/integralblue/hibernate/cache/springcache/SpringCacheRegionFactoryAutoConfigure.java create mode 100644 src/main/java/com/integralblue/hibernate/cache/springcache/SpringCacheRegionFactoryBeanPostProcessor.java create mode 100644 src/main/java/com/integralblue/hibernate/cache/springcache/SpringCacheToJCache.java create mode 100644 src/main/java/com/integralblue/hibernate/cache/springcache/package-info.java create mode 100644 src/main/resources/META-INF/spring.factories create mode 100644 src/test/java/com/integralblue/hibernate/test/domain/Account.java create mode 100644 src/test/java/com/integralblue/hibernate/test/domain/Event.java create mode 100644 src/test/java/com/integralblue/hibernate/test/domain/EventManager.java create mode 100644 src/test/java/com/integralblue/hibernate/test/domain/HolidayCalendar.java create mode 100644 src/test/java/com/integralblue/hibernate/test/domain/Item.java create mode 100644 src/test/java/com/integralblue/hibernate/test/domain/Person.java create mode 100644 src/test/java/com/integralblue/hibernate/test/domain/PhoneNumber.java create mode 100644 src/test/java/com/integralblue/hibernate/test/domain/UuidItem.java create mode 100644 src/test/java/com/integralblue/hibernate/test/domain/VersionedItem.java create mode 100644 src/test/resources/hibernate-config/domain/Account.hbm.xml create mode 100644 src/test/resources/hibernate-config/domain/Event.hbm.xml create mode 100644 src/test/resources/hibernate-config/domain/HolidayCalendar.hbm.xml create mode 100644 src/test/resources/hibernate-config/domain/Item.hbm.xml create mode 100644 src/test/resources/hibernate-config/domain/Person.hbm.xml create mode 100644 src/test/resources/hibernate-config/domain/PhoneNumber.hbm.xml create mode 100644 src/test/resources/hibernate-config/hibernate.cfg.xml create mode 100644 src/test/resources/hibernate.properties create mode 100644 src/test/resources/log4j.properties diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a73e386 --- /dev/null +++ b/.gitignore @@ -0,0 +1,19 @@ +target + +# Eclipse +.pmd +.checkstyle +.classpath +.project +.settings +.factorypath +.springBeans + +# Intellij +.idea +*.iml +*.iws + +# Mac +.DS_Store +/.apt_generated/ diff --git a/.mvn/wrapper/maven-wrapper.jar b/.mvn/wrapper/maven-wrapper.jar new file mode 100644 index 0000000000000000000000000000000000000000..5fd4d5023f1463b5ba3970e33c460c1eb26d748d GIT binary patch literal 49502 zcmb@tV|1n6wzeBvGe*U>ZQHh;%-Bg)Y}={WHY%yuwkkF%MnzxVwRUS~wY|@J_gP;% z^VfXZ{5793?z><89(^dufT2xlYVOQnYG>@?lA@vQF|UF0&X7tk8BUf?wq2J& zZe&>>paKUg4@;fwk0yeUPvM$yk)=f>TSFFB^a8f|_@mbE#MaBnd5qf6;hXq}c%IeK zn7gB0Kldbedq-vl@2wxJi{$%lufroKUjQLSFmt|<;M8~<5otM5ur#Dgc@ivmwRiYZW(Oco7kb8DWmo|a{coqYMU2raB9r6e9viK6MI3c&%jp05-Tf*O#6@8Ra=egYy01 z-V!G;_omANEvU-8!*>*)lWka9M<+IkNsrsenbXOfLc6qrYe`;lpst;vfs*70$z9UM zq%L>pFCOr$X*|9&3L2h;?VA9-IU*iR6FiGlJ=b~DzE5s^thxXUs4%~*zD#K&k>wZAU8 zpaa!M+Z-zjkfGK15N!&o<3=cgbZV7%ex@j^)Q9V`q^i;Fsbkbe6eHJ;dx{QbdCCs1 zdxq^WxoPsr`eiK3D0Ep}k$ank-0G&+lY!ZHDZB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j7$ur%9-=K=m+1QT9ro_U?#&Wv%M{`+o5WT)8b>jv9 z{(W;{+`KsjQAHU^2{m;l1<5DCcK8k!lt%~8FU9>xGEa>%xpxcvNwk|}rEBVH6gs&y zcc%2{>C}&E29pz0OWd`^u-ES8cTVPzX`)(qt=d?&K@&=Rotx78SlqgrEVG_qUo)_mC$8U`F#qlHOCD&RSroexT?YJLzvne^0W z@;=|QRR6AVW@n3W0fEJOGM5gbEhzW#FFa{0FL+k>kgt~r3DnajgxZvn2mk*LWvgsJNdYFw~S!X4cFe+Q;Q-_W%N z9+%cg5D+rIfU$v>NB;`!-|$Y|w(+s#2VpgER|yU}|IL~d1DHEF1OAnnMj?dmwqP?|!Tm)27hExl-^LX;b^(CT z!UODGtX!?!0czl=9(xOLEjt>6{g40iN!)JVBc;&q!{D7LBTNX0>kPC%g@yXJ??CR3 z^oF;AH}dO}OTni1fx&;Ra!+t5|8G{gf|ZL4*w`O!41NfJAE&N>zi#R(&V#)+FzyN% z_g90{z|?BLiTfv@hp{u@$1u7B_-1N#iJ#RBzM2BR!2c8QKQ->n9NpJB+kXlz_@(`y zApg-W%GVs=-$=u6Jp_Mfr34rf;5=qxnT`lG`0>Z&B#n)_ODW`1+jPPicN} zhgOBZJau)7R=(j9e&@_!Y{d>iX#+|6|i>`&Q={(}Kji+O zpFcjFOMd9Ss|3O?C362PVeDvZY6)PztKhZE=cg?HTJXn${I25H4xgVwR(eM*+@Z8Irh^0H1^@(vM%fLB8x9<0IcS*cf20Th OJOEd-=rxTO#Qy`$*1Hh^ literal 0 HcmV?d00001 diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties new file mode 100644 index 0000000..c954cec --- /dev/null +++ b/.mvn/wrapper/maven-wrapper.properties @@ -0,0 +1 @@ +distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.9/apache-maven-3.3.9-bin.zip diff --git a/.pmdruleset.xml b/.pmdruleset.xml new file mode 100644 index 0000000..7a2b436 --- /dev/null +++ b/.pmdruleset.xml @@ -0,0 +1,62 @@ + + + +.*/home/candrews/projects/hibernate-spring-cache/target.* +.*/home/candrews/projects/hibernate-spring-cache/src/test/java.* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.rultor.yml b/.rultor.yml new file mode 100644 index 0000000..48bf1f2 --- /dev/null +++ b/.rultor.yml @@ -0,0 +1,11 @@ +docker: + image: yegor256/java8 +decrypt: + settings.xml: "repo/settings.xml.asc" + pubring.gpg: "repo/pubring.gpg.asc" + secring.gpg: "repo/secring.gpg.asc" +release: + script: | + mvn versions:set "-DnewVersion=${tag}" + git commit -am "${tag}" + mvn clean deploy -Phibernate-springcache -Psonatype --settings /home/r/settings.xml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f92d408 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,5 @@ +dist: trusty +sudo: false +language: java +jdk: + - openjdk8 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..4362b49 --- /dev/null +++ b/LICENSE @@ -0,0 +1,502 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! diff --git a/README.md b/README.md new file mode 100644 index 0000000..ed077e4 --- /dev/null +++ b/README.md @@ -0,0 +1,31 @@ +Hibernate SpringCache +===================== + +[![DevOps By Rultor.com](http://www.rultor.com/b/candrews/hibernate-springcache)](http://www.rultor.com/p/candrews/hibernate-springcache) +[![Build Status](https://travis-ci.org/candrews/hibernate-springcache.svg?branch=master)](https://travis-ci.org/candrews/hibernate-springcache) +[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.integralblue/hibernate-springcache/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.integralblue/hibernate-springcache) +[![Reference Status](https://www.versioneye.com/java/com.integralblue:hibernate-springcache/reference_badge.svg?style=flat-square)](https://www.versioneye.com/java/com.integralblue:hibernate-springcache/references) +[![Dependency Status](https://www.versioneye.com/java/com.integralblue:hibernate-springcache/badge?style=flat-square)](https://www.versioneye.com/java/com.integralblue:hibernate-springcache) +[![Javadoc](https://javadoc-emblem.rhcloud.com/doc/com.integralblue/hibernate-springcach/badge.svg)](http://www.javadoc.io/doc/com.integralblue/hibernate-springcach) + +Hibernate SpringCache is a Hibernate cache implementation that backs to the Spring Cache abstraction. +In other words, setup caching once in Spring then use it from Spring and Hibernate so configuration isn't duplicated. + +This project has been submitted to Hibernate for inclusion: https://github.com/hibernate/hibernate-orm/pull/1639 + +Quick Start +=========== +* **Minimum requirements** — You'll need Java 1.8+, Hibernate 5.2.6+, and Spring 4.3+. Spring Boot 1.4+ is optional. +* **Download** — Depend on this libary using, for example, Maven: +```xml + + com.integralblue + hibernate-springcache + [INSERT VERSION HERE] + jar + +``` +* In application.properties, add: +`spring.jpa.properties.hibernate.cache.region.factory_class=com.integralblue.hibernate.cache.springcache.SpringCacheRegionFactory` +* If using Spring Boot, that's it - `com.integralblue.hibernate.cache.springcache.SpringCacheRegionFactoryAutoConfigure` will take care of the rest. +* If not not using Spring boot, the `com.integralblue.hibernate.cache.springcache.SpringCacheRegionFactoryBeanPostProcessor` bean post processor must be registered (add it as a bean using Spring Java or XML configuration). diff --git a/mvnw b/mvnw new file mode 100755 index 0000000..a1ba1bf --- /dev/null +++ b/mvnw @@ -0,0 +1,233 @@ +#!/bin/sh +# ---------------------------------------------------------------------------- +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# ---------------------------------------------------------------------------- + +# ---------------------------------------------------------------------------- +# Maven2 Start Up Batch script +# +# Required ENV vars: +# ------------------ +# JAVA_HOME - location of a JDK home dir +# +# Optional ENV vars +# ----------------- +# M2_HOME - location of maven2's installed home dir +# MAVEN_OPTS - parameters passed to the Java VM when running Maven +# e.g. to debug Maven itself, use +# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +# MAVEN_SKIP_RC - flag to disable loading of mavenrc files +# ---------------------------------------------------------------------------- + +if [ -z "$MAVEN_SKIP_RC" ] ; then + + if [ -f /etc/mavenrc ] ; then + . /etc/mavenrc + fi + + if [ -f "$HOME/.mavenrc" ] ; then + . "$HOME/.mavenrc" + fi + +fi + +# OS specific support. $var _must_ be set to either true or false. +cygwin=false; +darwin=false; +mingw=false +case "`uname`" in + CYGWIN*) cygwin=true ;; + MINGW*) mingw=true;; + Darwin*) darwin=true + # + # Look for the Apple JDKs first to preserve the existing behaviour, and then look + # for the new JDKs provided by Oracle. + # + if [ -z "$JAVA_HOME" ] && [ -L /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK ] ; then + # + # Apple JDKs + # + export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home + fi + + if [ -z "$JAVA_HOME" ] && [ -L /System/Library/Java/JavaVirtualMachines/CurrentJDK ] ; then + # + # Apple JDKs + # + export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home + fi + + if [ -z "$JAVA_HOME" ] && [ -L "/Library/Java/JavaVirtualMachines/CurrentJDK" ] ; then + # + # Oracle JDKs + # + export JAVA_HOME=/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home + fi + + if [ -z "$JAVA_HOME" ] && [ -x "/usr/libexec/java_home" ]; then + # + # Apple JDKs + # + export JAVA_HOME=`/usr/libexec/java_home` + fi + ;; +esac + +if [ -z "$JAVA_HOME" ] ; then + if [ -r /etc/gentoo-release ] ; then + JAVA_HOME=`java-config --jre-home` + fi +fi + +if [ -z "$M2_HOME" ] ; then + ## resolve links - $0 may be a link to maven's home + PRG="$0" + + # need this for relative symlinks + while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG="`dirname "$PRG"`/$link" + fi + done + + saveddir=`pwd` + + M2_HOME=`dirname "$PRG"`/.. + + # make it fully qualified + M2_HOME=`cd "$M2_HOME" && pwd` + + cd "$saveddir" + # echo Using m2 at $M2_HOME +fi + +# For Cygwin, ensure paths are in UNIX format before anything is touched +if $cygwin ; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --unix "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --unix "$CLASSPATH"` +fi + +# For Migwn, ensure paths are in UNIX format before anything is touched +if $mingw ; then + [ -n "$M2_HOME" ] && + M2_HOME="`(cd "$M2_HOME"; pwd)`" + [ -n "$JAVA_HOME" ] && + JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" + # TODO classpath? +fi + +if [ -z "$JAVA_HOME" ]; then + javaExecutable="`which javac`" + if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then + # readlink(1) is not available as standard on Solaris 10. + readLink=`which readlink` + if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then + if $darwin ; then + javaHome="`dirname \"$javaExecutable\"`" + javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" + else + javaExecutable="`readlink -f \"$javaExecutable\"`" + fi + javaHome="`dirname \"$javaExecutable\"`" + javaHome=`expr "$javaHome" : '\(.*\)/bin'` + JAVA_HOME="$javaHome" + export JAVA_HOME + fi + fi +fi + +if [ -z "$JAVACMD" ] ; then + if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + else + JAVACMD="`which java`" + fi +fi + +if [ ! -x "$JAVACMD" ] ; then + echo "Error: JAVA_HOME is not defined correctly." >&2 + echo " We cannot execute $JAVACMD" >&2 + exit 1 +fi + +if [ -z "$JAVA_HOME" ] ; then + echo "Warning: JAVA_HOME environment variable is not set." +fi + +CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher + +# For Cygwin, switch paths to Windows format before running java +if $cygwin; then + [ -n "$M2_HOME" ] && + M2_HOME=`cygpath --path --windows "$M2_HOME"` + [ -n "$JAVA_HOME" ] && + JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` + [ -n "$CLASSPATH" ] && + CLASSPATH=`cygpath --path --windows "$CLASSPATH"` +fi + +# traverses directory structure from process work directory to filesystem root +# first directory with .mvn subdirectory is considered project base directory +find_maven_basedir() { + local basedir=$(pwd) + local wdir=$(pwd) + while [ "$wdir" != '/' ] ; do + if [ -d "$wdir"/.mvn ] ; then + basedir=$wdir + break + fi + wdir=$(cd "$wdir/.."; pwd) + done + echo "${basedir}" +} + +# concatenates all lines of a file +concat_lines() { + if [ -f "$1" ]; then + echo "$(tr -s '\n' ' ' < "$1")" + fi +} + +export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-$(find_maven_basedir)} +MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" + +# Provide a "standardized" way to retrieve the CLI args that will +# work with both Windows and non-Windows executions. +MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@" +export MAVEN_CMD_LINE_ARGS + +WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +exec "$JAVACMD" \ + $MAVEN_OPTS \ + -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ + "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ + ${WRAPPER_LAUNCHER} "$@" diff --git a/mvnw.cmd b/mvnw.cmd new file mode 100644 index 0000000..2b934e8 --- /dev/null +++ b/mvnw.cmd @@ -0,0 +1,145 @@ +@REM ---------------------------------------------------------------------------- +@REM Licensed to the Apache Software Foundation (ASF) under one +@REM or more contributor license agreements. See the NOTICE file +@REM distributed with this work for additional information +@REM regarding copyright ownership. The ASF licenses this file +@REM to you under the Apache License, Version 2.0 (the +@REM "License"); you may not use this file except in compliance +@REM with the License. You may obtain a copy of the License at +@REM +@REM http://www.apache.org/licenses/LICENSE-2.0 +@REM +@REM Unless required by applicable law or agreed to in writing, +@REM software distributed under the License is distributed on an +@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +@REM KIND, either express or implied. See the License for the +@REM specific language governing permissions and limitations +@REM under the License. +@REM ---------------------------------------------------------------------------- + +@REM ---------------------------------------------------------------------------- +@REM Maven2 Start Up Batch script +@REM +@REM Required ENV vars: +@REM JAVA_HOME - location of a JDK home dir +@REM +@REM Optional ENV vars +@REM M2_HOME - location of maven2's installed home dir +@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands +@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending +@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven +@REM e.g. to debug Maven itself, use +@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 +@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files +@REM ---------------------------------------------------------------------------- + +@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' +@echo off +@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on' +@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% + +@REM set %HOME% to equivalent of $HOME +if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") + +@REM Execute a user defined script before this one +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre +@REM check for pre script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" +if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" +:skipRcPre + +@setlocal + +set ERROR_CODE=0 + +@REM To isolate internal variables from possible post scripts, we use another setlocal +@setlocal + +@REM ==== START VALIDATION ==== +if not "%JAVA_HOME%" == "" goto OkJHome + +echo. +echo Error: JAVA_HOME not found in your environment. >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +:OkJHome +if exist "%JAVA_HOME%\bin\java.exe" goto init + +echo. +echo Error: JAVA_HOME is set to an invalid directory. >&2 +echo JAVA_HOME = "%JAVA_HOME%" >&2 +echo Please set the JAVA_HOME variable in your environment to match the >&2 +echo location of your Java installation. >&2 +echo. +goto error + +@REM ==== END VALIDATION ==== + +:init + +set MAVEN_CMD_LINE_ARGS=%* + +@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". +@REM Fallback to current working directory if not found. + +set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% +IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir + +set EXEC_DIR=%CD% +set WDIR=%EXEC_DIR% +:findBaseDir +IF EXIST "%WDIR%"\.mvn goto baseDirFound +cd .. +IF "%WDIR%"=="%CD%" goto baseDirNotFound +set WDIR=%CD% +goto findBaseDir + +:baseDirFound +set MAVEN_PROJECTBASEDIR=%WDIR% +cd "%EXEC_DIR%" +goto endDetectBaseDir + +:baseDirNotFound +set MAVEN_PROJECTBASEDIR=%EXEC_DIR% +cd "%EXEC_DIR%" + +:endDetectBaseDir + +IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig + +@setlocal EnableExtensions EnableDelayedExpansion +for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a +@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% + +:endReadAdditionalConfig + +SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" + +set WRAPPER_JAR="".\.mvn\wrapper\maven-wrapper.jar"" +set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain + +%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CMD_LINE_ARGS% +if ERRORLEVEL 1 goto error +goto end + +:error +set ERROR_CODE=1 + +:end +@endlocal & set ERROR_CODE=%ERROR_CODE% + +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost +@REM check for post script, once with legacy .bat ending and once with .cmd ending +if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" +if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" +:skipRcPost + +@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' +if "%MAVEN_BATCH_PAUSE%" == "on" pause + +if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% + +exit /B %ERROR_CODE% \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..b57a43d --- /dev/null +++ b/pom.xml @@ -0,0 +1,239 @@ + + + 4.0.0 + + com.jcabi + parent + 0.48.3 + + com.integralblue + hibernate-springcache + 1.0.0-SNAPSHOT + Hibernate/Spring Cache Integration + Integration for org.springframework.cache.Cache into Hibernate as a second-level caching service + + + GNU Lesser General Public License + http://www.gnu.org/licenses/lgpl-2.1.html + See discussion at http://hibernate.org/license for more details. + repo + + + https://github.com/candrews/hibernate-springcache + + GitHub + https://github.com/candrews/hibernate-springcache/issues + + + travis + https://travis-ci.org/candrews/hibernate-springcache + + + https://github.com/candrews/hibernate-springcache + scm:git:https://github.com/candrews/hibernate-springcache.git + scm:git:git@github.com:candrews/hibernate-springcache.git + + + + Craig Andrews + candrews@integralblue.com + candrews + https://candrews.integralblue.com + -5 + + developer + + + + + + 5.2.7.Final + 4.3.6.RELEASE + 1.4.2.RELEASE + 1.8 + 1.8 + + + + + org.hibernate + hibernate-jcache + ${hibernate.version} + compile + + + org.springframework + spring-context + ${spring.version} + compile + + + org.springframework + spring-orm + ${spring.version} + compile + true + + + org.springframework.boot + spring-boot-autoconfigure + ${spring-boot.version} + compile + true + + + org.springframework.boot + spring-boot-test + ${spring-boot.version} + test + + + org.hibernate + hibernate-testing + ${hibernate.version} + test + + + + + + + maven-compiler-plugin + + ${maven.compiler.source} + ${maven.compiler.target} + + + + org.codehaus.mojo + animal-sniffer-maven-plugin + 1.14 + + + test + + check + + + + + + org.codehaus.mojo.signature + java17 + 1.0 + + + + + org.apache.maven.plugins + maven-pmd-plugin + 3.6 + + + net.sourceforge.pmd + pmd-core + 5.5.1 + + + net.sourceforge.pmd + pmd-java + 5.5.1 + + + + true + true + ${maven.compiler.target} + ${project.build.sourceEncoding} + + ${basedir}/.pmdruleset.xml + + + + + compile + + + check + + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + 2.17 + + + validate-fatal + validate + + shared/config/checkstyle/checkstyle.xml + UTF-8 + true + true + false + + + check + + + + validate-non-fatal + validate + + shared/config/checkstyle/checkstyle-non-fatal.xml + UTF-8 + true + false + false + + + check + + + + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + + org.codehaus.mojo + + + buildnumber-maven-plugin + + + [1.4,) + + + + create-timestamp + + + + + + + + + + + + + + + diff --git a/pubring.gpg.asc b/pubring.gpg.asc new file mode 100644 index 0000000..bbf9b8e --- /dev/null +++ b/pubring.gpg.asc @@ -0,0 +1,63 @@ +-----BEGIN PGP MESSAGE----- + +hQEMA5qETcGag5w6AQf+Iz2T8nUYt3Tz5sNDnlu7OxApn6VpkYhEw5nbqzsWlni2 +U+Ll8hrJOlkAr86PwLBq3stwv9fs5yGvgXe0Yq+PVz5KUNOmt8C2W1oN4iL5NCff +CFEmx3DdPxB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03zWbuVO170MAWrCLD6MbPaeXVcGRGRhoKbVlXyKD +jzOhl+rqgcil7dlF1Y21dme0jd9bsMcFf3RZggxFXTVL16QPSskRzu3SR1dUOHHo +0wm8wTknfrUgfWmVqkrcx42uGi1untPA0S7Dn1ldXMYkphT3ud0QaDkPepjZlQy/ +iX8h0OjANm4uzHVm4SV82nrvzWP43OOOq4cSzSf0TC0HiwWuE0dOakqtIXuBm65d +1U8QwE6k8sOZ441rfWwvQyrl/4XJpXfsoOzk5uEuJ5iJ00i49HvOO1YfqlOhYReh +NDfXQbD1RYF2kUoZH1aeDLP1Hw4z9ybeBA15yDkDIkajmkDRsXdlYQmJIibY9JEY +1ALheFPaZ/RDRrRo2WqchNoGz5t7Yb3Na2rKshpUoL993wwSJhi1fg0QxuSHd8NS +yvIXxfPFnHaV +=3YsG +-----END PGP MESSAGE----- diff --git a/secring.gpg.asc b/secring.gpg.asc new file mode 100644 index 0000000..7fed43c --- /dev/null +++ b/secring.gpg.asc @@ -0,0 +1,120 @@ +-----BEGIN PGP MESSAGE----- + +hQEMA5qETcGag5w6AQf+J6xT1OW0ZtZ4XmqHAyVtIPhV30lIqY+ea89NQq7hx2nX +ZaR7QY1DTTP0sg+9hXVTL7PMGHcrQMKe/oMxYVSJaGrOujl6v1hQVZRbAVC4hMNQ +GH/k8qogHxtgXvouPyWsKMWv4jue4oiI2MR/zD5+kqA31C0wxobryL4sVE8s6etk +Aeri2STKD7MJyz2yQxAtDsOtd5wuEWK5jSa5jUsKeM5RTKGnRw9jhJhYxq7QLUMv +pIrv5AafGwbjQb80zM1wW3heyrr2uL3jsYyLQS4iWETxD4Qaxr7ooMbdC/PKYOil +wZHRB3Z+0s3eN0UgxaQ0oYxAxwjvwg7vFKgjLKHJbtLsAefv+Hjy+SCJId0pfYTz +odip8QG4ZivbGLzz/EvIA1TO/K5vhECxu95xzXeIvNwznyX01+RhXeZKzCdSS30a +l2CgJVSxKvdS52p/sUjElZvasdHrJXzVo5lBDn7+UXlIUt9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RmpLYkv4UkdaMRLbSzPhjg0VMgCDRoA/P0w2g5Hg8LXUKT/iuYPd2a +I7Ltjpd6ZRO4Iq8NKXvihWUNGKONNBL6Gu5YbHt3D9cDoo49RBWU4IedDUIFtetI +zGB9aeEe/492SGdW4BSZgeMBwVlWBqgHLKchnBpbi87SulvjhVNBTpuAfZDJ1M7V +MDbQlNHaOhxYEaoy8SDpjp3UZ9OaqAF2spAzGc6kkR5DpBM+OzVP/lOUlYoorqDq +orbt7P3XQDyBJmk7pPbbITees25IVLMg2ReMNH6/YIaRuocjOkI0FE2dtiv4NmIe +uiEN1jWB0ormON8VCLkUAiyvjXK6jQiwxfcxpcku6nKs/4xaqUDyfBTyulrEe1qg +SAqirHYHJMiPUe1qe7MbPpZOrd36FGKqvg0Fbo3Hj1S1lnHwgP4eOdegKan3TfPd +aj533CV9gM4o4s+1iDPlTpxL665SaY2osNE50Zl1QJwjqIZDccjsThnF50sViHaT +JIuX62FcHpm8VpxRbm9P/g== +=u8j7 +-----END PGP MESSAGE----- diff --git a/settings.xml.asc b/settings.xml.asc new file mode 100644 index 0000000..aafa31e --- /dev/null +++ b/settings.xml.asc @@ -0,0 +1,20 @@ +-----BEGIN PGP MESSAGE----- + +hQEMA5qETcGag5w6AQgAvE6uSC+lVKL/H+ml2XNtu278KK+WpIHrCi4wEWkFNsbU +st1/r/mugGak/pTlCuE5heLVhgENqCEsImhd5wD5dfB8oXImpabPuBbU03JARcPZ +Pc81O0MX1TZjzqkg7fsE+7L5TqhCqKO/B/ZmzMoHhj7EeJxMdJLxCUKgTRkMlmdU +pwpWPRruwcqPpMp/w/Zz5Q3C3kk0lpcClvgQQbBRR6pfv6WfSnXVhdr4Zu3OODrj +D9FPqRhrDKzTVuGkNa8mMsJnyrypspjtgv+p9IyExXoDQena5NHQfnn5vbRmh1kR +prJF5/4bSYJOcKGt7s23C+mpHQ0kNVcphzPrUzyTMNLBBQE6TAczwusohZ0nl9Tr +dmViQxxIoQzERhV4oBJP5ziAUVn9RYeByqBdvtMVIRMbTcU1+DNLYdBBPc2dLTh8 +GQuDb+OYc/HfyKZAYWYIw8Qi5ei21/iOyZvCnM6RAcQXS/vxXTO4f3ZuWJ3+YWn0 +iRahitAWbjqUrEg2ERD8jt6xQQ29drKSb+kbKI3cWzpzYl/7kzP1btKpkFSV+vM6 +PW029urLIW/ob3NeK+JjWp4n4KG4825uwMQRHfAaqujkndW6HjOcEe5GpIk4dtm0 +EDxH2+IC2pMD/mzbIKPp44I7vsWV342NKqPb/jGJkhibEhFAOd2KXoz9UiS91Zc2 +6pDvkDc4zxHSOuTmUHi3PnR4zh76sT/rVQdjPMFiI/cIe73I518gDdU3tliyvW8J +I53cszcM4MhcJS0GKK5Bp9w7fKxxicYyCxRhKHAlOESvjP1WmKAG3kd2c2l5ikY0 +nFHBB9k3VzkoAedsVLgSg+LofXjdVZk0WbzN8Ik+lIpIx3VF2zQzuf0fGw4sDVc4 +f2whPs+NSU/b7H3m5930IovNpevC8XxRF2Dg+E/vZiTgV/srQuCQKiiOQh49XHVQ +1LwZY0CQBA== +=OWoK +-----END PGP MESSAGE----- diff --git a/shared/config/checkstyle/checkstyle-non-fatal.xml b/shared/config/checkstyle/checkstyle-non-fatal.xml new file mode 100644 index 0000000..f8df9f8 --- /dev/null +++ b/shared/config/checkstyle/checkstyle-non-fatal.xml @@ -0,0 +1,190 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/shared/config/checkstyle/checkstyle.xml b/shared/config/checkstyle/checkstyle.xml new file mode 100644 index 0000000..a122c4e --- /dev/null +++ b/shared/config/checkstyle/checkstyle.xml @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/java/com/integralblue/hibernate/cache/springcache/SpringCacheManagerToJCacheManagerAdapter.java b/src/main/java/com/integralblue/hibernate/cache/springcache/SpringCacheManagerToJCacheManagerAdapter.java new file mode 100644 index 0000000..cd34d1a --- /dev/null +++ b/src/main/java/com/integralblue/hibernate/cache/springcache/SpringCacheManagerToJCacheManagerAdapter.java @@ -0,0 +1,148 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * License: GNU Lesser General Public License (LGPL), version 2.1 or later. + * See the lgpl.txt file in the root directory or . + */ +package com.integralblue.hibernate.cache.springcache; + +import java.net.URI; +import java.util.Collections; +import java.util.Properties; +import java.util.concurrent.ConcurrentHashMap; +import java.util.concurrent.ConcurrentMap; +import java.util.concurrent.atomic.AtomicBoolean; + +import javax.cache.Cache; +import javax.cache.CacheManager; +import javax.cache.configuration.Configuration; +import javax.cache.spi.CachingProvider; + +class SpringCacheManagerToJCacheManagerAdapter implements CacheManager { + + private final org.springframework.cache.CacheManager springCacheManager; + + private final ConcurrentMap> nameToCache = new ConcurrentHashMap<>(); + + private final AtomicBoolean closed = new AtomicBoolean(false); + + private final boolean unwrapJcache; + + public SpringCacheManagerToJCacheManagerAdapter(final org.springframework.cache.CacheManager springCacheManager, final boolean unwrapJcache) { + super(); + this.unwrapJcache = unwrapJcache; + this.springCacheManager = springCacheManager; + for(final String cacheName : springCacheManager.getCacheNames()){ + nameToCache.put( cacheName, new SpringCacheToJCache<>( this, springCacheManager.getCache( cacheName ) ) ); + } + } + + @Override + public CachingProvider getCachingProvider() { + throw new UnsupportedOperationException(); + } + + @Override + public URI getURI() { + throw new UnsupportedOperationException(); + } + + @Override + public ClassLoader getClassLoader() { + return springCacheManager.getClass().getClassLoader(); + } + + @Override + public Properties getProperties() { + throw new UnsupportedOperationException(); + } + + @Override + public > Cache createCache(final String cacheName, final C configuration) + throws IllegalArgumentException { + throw new UnsupportedOperationException("Cache creation is not supported. cacheName: " + cacheName); + } + + @Override + public Cache getCache(final String cacheName, final Class keyType, final Class valueType) { + return getCache( cacheName ); + } + + @SuppressWarnings("unchecked") + @Override + public Cache getCache(final String cacheName) { + checkClosed(); + Cache cache = (Cache) nameToCache.get( cacheName ); + if(cache == null){ + final org.springframework.cache.Cache springCache = springCacheManager.getCache( cacheName ); + if(springCache!=null){ + final Cache jCache; + if(unwrapJcache && springCache.getNativeCache() instanceof Cache){ + jCache = (Cache) springCache.getNativeCache(); + } + else{ + jCache = new SpringCacheToJCache<>( this, springCache ); + } + cache = (Cache) nameToCache.putIfAbsent( cacheName, jCache ); + } + } + return cache; + } + + @Override + public Iterable getCacheNames() { + checkClosed(); + return Collections.unmodifiableCollection( nameToCache.keySet() ); + } + + @Override + public void destroyCache(final String cacheName) { + checkClosed(); + final Cache cache = nameToCache.remove( cacheName ); + if(cache!=null){ + cache.clear(); + cache.close(); + } + } + + @Override + public void enableManagement(final String cacheName, final boolean enabled) { + checkClosed(); + // not supported by org.springframework.cache.CacheManager + } + + @Override + public void enableStatistics(final String cacheName, final boolean enabled) { + checkClosed(); + // not supported by org.springframework.cache.CacheManager + } + + @Override + public void close() { + for(final Cache cache : nameToCache.values()){ + cache.close(); + } + closed.set( false ); + } + + @Override + public boolean isClosed() { + return closed.get(); + } + + @SuppressWarnings("unchecked") + @Override + public T unwrap(final Class clazz) { + if(clazz.isInstance( springCacheManager )){ + return (T) springCacheManager; + } + throw new IllegalArgumentException(); + } + + private void checkClosed(){ + if(closed.get()){ + throw new IllegalStateException("Cache is closed"); + } + } + +} diff --git a/src/main/java/com/integralblue/hibernate/cache/springcache/SpringCacheRegionFactory.java b/src/main/java/com/integralblue/hibernate/cache/springcache/SpringCacheRegionFactory.java new file mode 100644 index 0000000..2cdb280 --- /dev/null +++ b/src/main/java/com/integralblue/hibernate/cache/springcache/SpringCacheRegionFactory.java @@ -0,0 +1,34 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * License: GNU Lesser General Public License (LGPL), version 2.1 or later. + * See the lgpl.txt file in the root directory or . + */ +package com.integralblue.hibernate.cache.springcache; + +import java.util.Properties; + +import javax.cache.CacheManager; + +import org.hibernate.cache.jcache.JCacheRegionFactory; + +@SuppressWarnings("serial") +public class SpringCacheRegionFactory extends JCacheRegionFactory { + + public static final ThreadLocal SPRING_CACHE_MANAGER = new InheritableThreadLocal<>(); + + private static final String PROP_PREFIX = "hibernate.spring.cache"; + + public static final String UNWRAP_JCACHE = PROP_PREFIX + ".unwrap_jcache"; + + @Override + protected CacheManager getCacheManager(final Properties properties ){ + final org.springframework.cache.CacheManager springCacheManager = SPRING_CACHE_MANAGER.get(); + if(springCacheManager == null){ + throw new IllegalStateException("The Spring Cache Manager to use must be provided"); + } + final boolean unwrapJcache = Boolean.parseBoolean( getProp( properties, UNWRAP_JCACHE ) ); + return new SpringCacheManagerToJCacheManagerAdapter( springCacheManager, unwrapJcache ); + } + +} diff --git a/src/main/java/com/integralblue/hibernate/cache/springcache/SpringCacheRegionFactoryAutoConfigure.java b/src/main/java/com/integralblue/hibernate/cache/springcache/SpringCacheRegionFactoryAutoConfigure.java new file mode 100644 index 0000000..79d2cd0 --- /dev/null +++ b/src/main/java/com/integralblue/hibernate/cache/springcache/SpringCacheRegionFactoryAutoConfigure.java @@ -0,0 +1,20 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * License: GNU Lesser General Public License (LGPL), version 2.1 or later. + * See the lgpl.txt file in the root directory or . + */ +package com.integralblue.hibernate.cache.springcache; + +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +@Configuration +@ConditionalOnProperty(name="spring.jpa.properties.hibernate.cache.region.factory_class", havingValue="com.integralblue.hibernate.cache.springcache.SpringCacheRegionFactory") +public class SpringCacheRegionFactoryAutoConfigure { + @Bean + protected SpringCacheRegionFactoryBeanPostProcessor springCacheRegionFactoryBeanPostProcessor(){ + return new SpringCacheRegionFactoryBeanPostProcessor(); + } +} diff --git a/src/main/java/com/integralblue/hibernate/cache/springcache/SpringCacheRegionFactoryBeanPostProcessor.java b/src/main/java/com/integralblue/hibernate/cache/springcache/SpringCacheRegionFactoryBeanPostProcessor.java new file mode 100644 index 0000000..49f216f --- /dev/null +++ b/src/main/java/com/integralblue/hibernate/cache/springcache/SpringCacheRegionFactoryBeanPostProcessor.java @@ -0,0 +1,46 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * License: GNU Lesser General Public License (LGPL), version 2.1 or later. + * See the lgpl.txt file in the root directory or . + */ +package com.integralblue.hibernate.cache.springcache; + +import java.util.HashSet; +import java.util.Set; + +import org.springframework.beans.BeansException; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.beans.factory.config.BeanPostProcessor; +import org.springframework.cache.CacheManager; +import org.springframework.orm.jpa.AbstractEntityManagerFactoryBean; + +/** + * {@link BeanPostProcessor} that sets the {@link CacheManager} on {@link SpringCacheRegionFactory}. + * @author Craig Andrews + * + */ +public class SpringCacheRegionFactoryBeanPostProcessor implements BeanPostProcessor { + private Set beanNames = new HashSet<>(); + + @Autowired + private CacheManager cacheManager; + + @Override + public Object postProcessBeforeInitialization(final Object bean, final String beanName) throws BeansException { + if(bean instanceof AbstractEntityManagerFactoryBean){ + SpringCacheRegionFactory.SPRING_CACHE_MANAGER.set( cacheManager ); + beanNames.add( beanName ); + } + return bean; + } + + @Override + public Object postProcessAfterInitialization(final Object bean, final String beanName) throws BeansException { + if( beanNames.remove( beanName ) && beanNames.isEmpty() ){ + SpringCacheRegionFactory.SPRING_CACHE_MANAGER.remove(); + } + return bean; + } + +} diff --git a/src/main/java/com/integralblue/hibernate/cache/springcache/SpringCacheToJCache.java b/src/main/java/com/integralblue/hibernate/cache/springcache/SpringCacheToJCache.java new file mode 100644 index 0000000..4387dad --- /dev/null +++ b/src/main/java/com/integralblue/hibernate/cache/springcache/SpringCacheToJCache.java @@ -0,0 +1,359 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * License: GNU Lesser General Public License (LGPL), version 2.1 or later. + * See the lgpl.txt file in the root directory or . + */ +package com.integralblue.hibernate.cache.springcache; + +import java.util.HashMap; +import java.util.Iterator; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import java.util.concurrent.atomic.AtomicBoolean; + +import javax.cache.Cache; +import javax.cache.CacheManager; +import javax.cache.configuration.CacheEntryListenerConfiguration; +import javax.cache.configuration.Configuration; +import +javax.cache.integration.CompletionListener; +import javax.cache.processor.EntryProcessor; +import javax.cache.processor.EntryProcessorException; +import javax.cache.processor.EntryProcessorResult; +import +javax.cache.processor.MutableEntry; + +import org.springframework.cache.Cache.ValueWrapper; +import org.springframework.core.GenericTypeResolver; + +class SpringCacheToJCache implements Cache { + private final org.springframework.cache.Cache springCache; + private final CacheManager cacheManager; + private final Class valueClass; + + private final AtomicBoolean closed = new AtomicBoolean(false); + + private class CacheEntry implements MutableEntry { + private K key; + private V value; + + public CacheEntry(final K key, final V value) { + super(); + this.key = key; + this.value = value; + } + + @Override + public K getKey() { + return key; + } + + @Override + public V getValue() { + // The javadoc for javax.cache.Cache.Entry.getValue() says: + // Returns the value stored in the cache when this entry was created. + // so don't get the live value + return value; + } + + @Override + public T unwrap(final Class clazz) { + throw new IllegalArgumentException(); + } + + @Override + public boolean exists() { + return springCache.get( key )!=null; + } + + @Override + public void remove() { + springCache.evict( key ); + } + + @Override + public void setValue(final V value) { + springCache.put( key, value ); + } + + } + + private void checkClosed(){ + if(closed.get()){ + throw new IllegalStateException("Cache is closed"); + } + } + + @SuppressWarnings("unchecked") + public SpringCacheToJCache(final CacheManager cacheManager, final org.springframework.cache.Cache springCache) { + super(); + final Class[] genericArguments = GenericTypeResolver.resolveTypeArguments( + getClass(), SpringCacheToJCache.class ); + this.cacheManager = cacheManager; + this.valueClass = (Class) (genericArguments == null ? Object.class : genericArguments[1]); + this.springCache = springCache; + } + + @Override + public V get( final K key ) { + checkClosed(); + return springCache.get( key, valueClass ); + } + + @Override + public Map getAll(final Set keys) { + checkClosed(); + final Map ret = new HashMap<>(); + for(final K key: keys){ + final ValueWrapper valueWrapper = springCache.get( key ); + if(valueWrapper != null){ + // keys that don't exist in the cache should not be present in the returned map + @SuppressWarnings("unchecked") + final V value = (V) valueWrapper.get(); + ret.put( key, value ); + } + } + return ret; + } + + @Override + public boolean containsKey(final K key) { + checkClosed(); + return springCache.get( key ) !=null; + } + + @Override + public void loadAll(final Set keys, final boolean replaceExistingValues, final CompletionListener completionListener) { + checkClosed(); + throw new UnsupportedOperationException(); + } + + @Override + public void put(final K key, final V value) { + checkClosed(); + springCache.put( key, value ); + } + + @Override + public V getAndPut(final K key, final V value) { + checkClosed(); + final V oldValue = springCache.get( key, valueClass ); + springCache.put( key, value ); + return oldValue; + } + + @Override + public void putAll(final Map map) { + checkClosed(); + for(final Map.Entry entry : map.entrySet()){ + put( entry.getKey(), entry.getValue() ); + } + } + + @Override + public boolean putIfAbsent(final K key, final V value) { + checkClosed(); + final ValueWrapper valueWrapper = springCache.get( key ); + if(valueWrapper == null){ + put( key, value ); + return true; + } + else{ + return false; + } + } + + @Override + public boolean remove(final K key) { + checkClosed(); + final boolean exists = springCache.get( key )!=null; + springCache.evict( key ); + return exists; + } + + @Override + public boolean remove(final K key, final V oldValue) { + checkClosed(); + if(Objects.equals( get( key ), oldValue ) ){ + springCache.evict( key ); + return true; + } + else{ + return false; + } + } + + @Override + public V getAndRemove(final K key) { + checkClosed(); + if ( containsKey( key ) ) { + final V oldValue = get( key ); + remove( key ); + return oldValue; + } + else { + return null; + } + } + + @Override + public boolean replace(final K key, final V oldValue, final V newValue) { + checkClosed(); + final ValueWrapper valueWrapper = springCache.get( key ); + if(valueWrapper == null){ + return false; + } + else{ + if( Objects.equals( oldValue, valueWrapper.get() ) ){ + put( key, newValue ); + return true; + } + else{ + return false; + } + } + } + + @Override + public boolean replace(final K key, final V value) { + checkClosed(); + if ( containsKey( key ) ) { + put( key, value ); + return true; + } + else { + return false; + } + } + + @SuppressWarnings("unchecked") + @Override + public V getAndReplace(final K key, final V value) { + checkClosed(); + final ValueWrapper valueWrapper = springCache.get( key ); + if(valueWrapper == null){ + return null; + } + else { + put( key, value ); + return (V) valueWrapper.get(); + } + } + + @Override + public void removeAll(final Set keys) { + checkClosed(); + for(final K key : keys){ + springCache.evict( key ); + } + } + + @Override + public void removeAll() { + checkClosed(); + springCache.clear(); + } + + @Override + public void clear() { + checkClosed(); + springCache.clear(); + } + + @Override + public > C getConfiguration(final Class clazz) { + checkClosed(); + throw new IllegalArgumentException(); + } + + @Override + public T invoke(final K key, final EntryProcessor entryProcessor, final Object... arguments) + throws EntryProcessorException { + checkClosed(); + return entryProcessor.process( new CacheEntry( key, get( key ) ), arguments ); + } + + @Override + public Map> invokeAll(final Set keys, final EntryProcessor entryProcessor, + final Object... arguments) { + checkClosed(); + final Map> ret = new HashMap<>(); + for(final K key : keys){ + try{ + final T entryProcessorProcessResult = invoke( key, entryProcessor, arguments ); + if(entryProcessorProcessResult!=null){ + ret.put( key, new EntryProcessorResult() { + @Override + public T get() throws EntryProcessorException { + return entryProcessorProcessResult; + } + } ); + } + } + catch(final EntryProcessorException e){ + ret.put( key, new EntryProcessorResult() { + @Override + public T get() throws EntryProcessorException { + throw e; + } + } ); + } + } + return ret; + } + + @Override + public String getName() { + return springCache.getName(); + } + + @Override + public CacheManager getCacheManager() { + return cacheManager; + } + + @Override + public void close() { + closed.set( true ); + cacheManager.destroyCache( this.getName() ); + } + + @Override + public boolean isClosed() { + return closed.get(); + } + + @SuppressWarnings("unchecked") + @Override + public T unwrap(final Class clazz) { + checkClosed(); + if(clazz.isInstance( springCache ) ){ + return (T) springCache; + } + if(springCache.getNativeCache()!=null && clazz.isInstance( springCache.getNativeCache() ) ) { + return (T) springCache.getNativeCache(); + } + throw new IllegalArgumentException(); + } + + @Override + public void registerCacheEntryListener(final CacheEntryListenerConfiguration cacheEntryListenerConfiguration) { + checkClosed(); + throw new UnsupportedOperationException(); + } + + @Override + public void deregisterCacheEntryListener(final CacheEntryListenerConfiguration cacheEntryListenerConfiguration) { + checkClosed(); + throw new UnsupportedOperationException(); + } + + @Override + public Iterator> iterator() { + checkClosed(); + throw new UnsupportedOperationException(); + } + +} diff --git a/src/main/java/com/integralblue/hibernate/cache/springcache/package-info.java b/src/main/java/com/integralblue/hibernate/cache/springcache/package-info.java new file mode 100644 index 0000000..1d05ad2 --- /dev/null +++ b/src/main/java/com/integralblue/hibernate/cache/springcache/package-info.java @@ -0,0 +1,11 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * License: GNU Lesser General Public License (LGPL), version 2.1 or later. + * See the lgpl.txt file in the root directory or . + */ + +/** + * Hibernate caching provider for Spring Caches. + */ +package com.integralblue.hibernate.cache.springcache; diff --git a/src/main/resources/META-INF/spring.factories b/src/main/resources/META-INF/spring.factories new file mode 100644 index 0000000..9561ef9 --- /dev/null +++ b/src/main/resources/META-INF/spring.factories @@ -0,0 +1,2 @@ +org.springframework.boot.autoconfigure.EnableAutoConfiguration=com.integralblue.hibernate.cache.springcache.SpringCacheRegionFactoryAutoConfigure + diff --git a/src/test/java/com/integralblue/hibernate/test/domain/Account.java b/src/test/java/com/integralblue/hibernate/test/domain/Account.java new file mode 100644 index 0000000..d79c723 --- /dev/null +++ b/src/test/java/com/integralblue/hibernate/test/domain/Account.java @@ -0,0 +1,38 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * License: GNU Lesser General Public License (LGPL), version 2.1 or later. + * See the lgpl.txt file in the root directory or . + */ + +package com.integralblue.hibernate.test.domain; + +public class Account { + + private Long id; + private Person person; + + public Account() { + // + } + + public Person getPerson() { + return person; + } + + public void setPerson(Person person) { + this.person = person; + } + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String toString() { + return super.toString(); + } +} diff --git a/src/test/java/com/integralblue/hibernate/test/domain/Event.java b/src/test/java/com/integralblue/hibernate/test/domain/Event.java new file mode 100644 index 0000000..b123662 --- /dev/null +++ b/src/test/java/com/integralblue/hibernate/test/domain/Event.java @@ -0,0 +1,75 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * License: GNU Lesser General Public License (LGPL), version 2.1 or later. + * See the lgpl.txt file in the root directory or . + */ +package com.integralblue.hibernate.test.domain; + +import java.util.Date; +import java.util.HashSet; +import java.util.Set; + +public class Event { + private Long id; + + private String title; + private Date date; + private Set participants = new HashSet<>(); + private Person organizer; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Date getDate() { + return date; + } + + public void setDate(Date date) { + this.date = date; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public void setOrganizer(Person organizer) { + this.organizer = organizer; + } + + public Person getOrganizer() { + return organizer; + } + + public Set getParticipants() { + return participants; + } + + public void setParticipants(Set participants) { + this.participants = participants; + } + + public void addParticipant(Person person) { + participants.add(person); + person.getEvents().add(this); + } + + public void removeParticipant(Person person) { + participants.remove(person); + person.getEvents().remove(this); + } + + @Override + public String toString() { + return getTitle() + ": " + getDate(); + } +} diff --git a/src/test/java/com/integralblue/hibernate/test/domain/EventManager.java b/src/test/java/com/integralblue/hibernate/test/domain/EventManager.java new file mode 100644 index 0000000..f974ae8 --- /dev/null +++ b/src/test/java/com/integralblue/hibernate/test/domain/EventManager.java @@ -0,0 +1,241 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * License: GNU Lesser General Public License (LGPL), version 2.1 or later. + * See the lgpl.txt file in the root directory or . + */ +package com.integralblue.hibernate.test.domain; + +import java.util.ArrayList; +import java.util.Date; +import java.util.Iterator; +import java.util.List; +import java.util.ListIterator; + +import org.hibernate.Session; +import org.hibernate.SessionFactory; + +@SuppressWarnings("deprecation") +public class EventManager { + + private final SessionFactory sessionFactory; + + public EventManager(SessionFactory sessionFactory) { + this.sessionFactory = sessionFactory; + } + + public List listEmailsOfEvent(Long eventId) { + Session session = sessionFactory.getCurrentSession(); + session.beginTransaction(); + + List emailList = new ArrayList(); + Event event = session.load(Event.class, eventId); + for (Iterator it = event.getParticipants().iterator(); it.hasNext(); ) { + Person person = it.next(); + emailList.addAll(person.getEmailAddresses()); + } + + session.getTransaction().commit(); + return emailList; + } + + public Long createAndStoreEvent(String title, Person organizer, Date theDate) { + + Session session = sessionFactory.getCurrentSession(); + + session.beginTransaction(); + + Event theEvent = new Event(); + theEvent.setTitle(title); + theEvent.setDate(theDate); + theEvent.setOrganizer(organizer); + + Long eventId = (Long)session.save(theEvent); + + session.getTransaction().commit(); + return eventId; + } + + public Long createAndStorePerson(String firstName, String lastName) { + + Session session = sessionFactory.getCurrentSession(); + + session.beginTransaction(); + + Person person = new Person(); + person.setFirstname(firstName); + person.setLastname(lastName); + + Long personId = (Long)session.save(person); + + session.getTransaction().commit(); + return personId; + } + + public Long createAndStorePerson(Person person) { + + Session session = sessionFactory.getCurrentSession(); + + session.beginTransaction(); + + Long personId = (Long)session.save(person); + + session.getTransaction().commit(); + return personId; + } + + public List listEvents() { + + Session session = sessionFactory.getCurrentSession(); + + session.beginTransaction(); + + List result = session.createQuery("from Event", Event.class).setCacheable(true).list(); + + session.getTransaction().commit(); + + return result; + } + + /** + * Call setEntity() on a cacheable query - see FORGE-265 + */ + public List listEventsOfOrganizer(Person organizer) { + + Session session = sessionFactory.getCurrentSession(); + + session.beginTransaction(); + + org.hibernate.Query query = session.createQuery("from Event ev where ev.organizer = :organizer", Event.class); + + query.setCacheable(true); + query.setEntity("organizer", organizer); + List result = query.list(); + + session.getTransaction().commit(); + + return result; + } + + /** + * Use a Criteria query - see FORGE-247 + */ + public List listEventsWithCriteria() { + Session session = sessionFactory.getCurrentSession(); + + session.beginTransaction(); + + @SuppressWarnings("unchecked") + List result = session.createCriteria(Event.class) + .setCacheable(true) + .list(); + + session.getTransaction().commit(); + + return result; + } + + public void addPersonToEvent(Long personId, Long eventId) { + + Session session = sessionFactory.getCurrentSession(); + session.beginTransaction(); + + Person aPerson = session.load(Person.class, personId); + Event anEvent = session.load(Event.class, eventId); + + aPerson.getEvents().add(anEvent); + + session.getTransaction().commit(); + } + + public Long addPersonToAccount(Long personId, Account account) { + Session session = sessionFactory.getCurrentSession(); + session.beginTransaction(); + + Person aPerson = session.load(Person.class, personId); + account.setPerson(aPerson); + + Long accountId = (Long)session.save(account); + + session.getTransaction().commit(); + return accountId; + } + + public Account getAccount(Long accountId) { + Session session = sessionFactory.getCurrentSession(); + session.beginTransaction(); + + Account account = session.load(Account.class, accountId); + + session.getTransaction().commit(); + return account; + } + + public void addEmailToPerson(Long personId, String emailAddress) { + + Session session = sessionFactory.getCurrentSession(); + session.beginTransaction(); + + Person aPerson = session.load(Person.class, personId); + + // The getEmailAddresses() might trigger a lazy load of the collection + aPerson.getEmailAddresses().add(emailAddress); + + session.getTransaction().commit(); + } + + public void addPhoneNumberToPerson(Long personId, PhoneNumber pN) { + + Session session = sessionFactory.getCurrentSession(); + session.beginTransaction(); + + Person aPerson = session.load(Person.class, personId); + pN.setPersonId(personId.longValue()); + aPerson.getPhoneNumbers().add(pN); + + session.getTransaction().commit(); + } + + public void addTalismanToPerson(Long personId, String talisman) { + + Session session = sessionFactory.getCurrentSession(); + session.beginTransaction(); + + Person aPerson = session.load(Person.class, personId); + aPerson.addTalisman(talisman); + + session.getTransaction().commit(); + } + + public Long createHolidayCalendar() { + + Session session = sessionFactory.getCurrentSession(); + session.beginTransaction(); + + // delete all existing calendars + List calendars = session.createQuery("from HolidayCalendar").setCacheable(true).list(); + for (ListIterator li = calendars.listIterator(); li.hasNext(); ) { + session.delete(li.next()); + } + + HolidayCalendar calendar = new HolidayCalendar(); + calendar.init(); + + Long calendarId = (Long)session.save(calendar); + + session.getTransaction().commit(); + return calendarId; + } + + public HolidayCalendar getHolidayCalendar() { + Session session = sessionFactory.getCurrentSession(); + + session.beginTransaction(); + + List calendars = session.createQuery("from HolidayCalendar", HolidayCalendar.class).setCacheable(true).list(); + + session.getTransaction().commit(); + + return calendars.isEmpty() ? null : calendars.get(0); + } +} diff --git a/src/test/java/com/integralblue/hibernate/test/domain/HolidayCalendar.java b/src/test/java/com/integralblue/hibernate/test/domain/HolidayCalendar.java new file mode 100644 index 0000000..fe253ca --- /dev/null +++ b/src/test/java/com/integralblue/hibernate/test/domain/HolidayCalendar.java @@ -0,0 +1,66 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * License: GNU Lesser General Public License (LGPL), version 2.1 or later. + * See the lgpl.txt file in the root directory or . + */ +package com.integralblue.hibernate.test.domain; + + + +import java.text.DateFormat; +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.HashMap; +import java.util.Map; + +public class HolidayCalendar { + + + private Long id; + // Date -> String + private Map holidays = new HashMap<>(); + + public HolidayCalendar init() { + DateFormat df = new SimpleDateFormat("yyyy.MM.dd"); + try { + holidays.clear(); + holidays.put(df.parse("2009.01.01"), "New Year's Day"); + holidays.put(df.parse("2009.02.14"), "Valentine's Day"); + holidays.put(df.parse("2009.11.11"), "Armistice Day"); + } catch (ParseException e) { + throw new RuntimeException(e); + } + return this; + } + + public Map getHolidays() { + return holidays; + } + + protected void setHolidays(Map holidays) { + this.holidays = holidays; + } + + public void addHoliday(Date d, String name) { + holidays.put(d, name); + } + + public String getHoliday(Date d) { + return holidays.get(d); + } + + public boolean isHoliday(Date d) { + return holidays.containsKey(d); + } + + protected Long getId() { + return id; + } + + protected void setId(Long id) { + this.id = id; + } +} + diff --git a/src/test/java/com/integralblue/hibernate/test/domain/Item.java b/src/test/java/com/integralblue/hibernate/test/domain/Item.java new file mode 100644 index 0000000..3a1cb23 --- /dev/null +++ b/src/test/java/com/integralblue/hibernate/test/domain/Item.java @@ -0,0 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * License: GNU Lesser General Public License (LGPL), version 2.1 or later. + * See the lgpl.txt file in the root directory or . + */ +package com.integralblue.hibernate.test.domain; + +public class Item { + private Long id; + private String name; + private String description; + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } +} \ No newline at end of file diff --git a/src/test/java/com/integralblue/hibernate/test/domain/Person.java b/src/test/java/com/integralblue/hibernate/test/domain/Person.java new file mode 100644 index 0000000..d5e201c --- /dev/null +++ b/src/test/java/com/integralblue/hibernate/test/domain/Person.java @@ -0,0 +1,112 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * License: GNU Lesser General Public License (LGPL), version 2.1 or later. + * See the lgpl.txt file in the root directory or . + */ + +package com.integralblue.hibernate.test.domain; + +import java.util.ArrayList; +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +public class Person { + + private Long id; + private int age; + private String firstname; + private String lastname; + private List events = new ArrayList<>(); // list semantics, e.g., indexed + private Set emailAddresses = new HashSet<>(); + private Set phoneNumbers = new HashSet<>(); + private List talismans = new ArrayList<>(); // a Bag of good-luck charms. + + public Person() { + // + } + + public List getEvents() { + return events; + } + + protected void setEvents(List events) { + this.events = events; + } + + public void addToEvent(Event event) { + this.getEvents().add(event); + event.getParticipants().add(this); + } + + public void removeFromEvent(Event event) { + this.getEvents().remove(event); + event.getParticipants().remove(this); + } + + public int getAge() { + return age; + } + + public void setAge(int age) { + this.age = age; + } + + public String getFirstname() { + return firstname; + } + + public void setFirstname(String firstname) { + this.firstname = firstname; + } + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getLastname() { + return lastname; + } + + public void setLastname(String lastname) { + this.lastname = lastname; + } + + public Set getEmailAddresses() { + return emailAddresses; + } + + public void setEmailAddresses(Set emailAddresses) { + this.emailAddresses = emailAddresses; + } + + public Set getPhoneNumbers() { + return phoneNumbers; + } + + public void setPhoneNumbers(Set phoneNumbers) { + this.phoneNumbers = phoneNumbers; + } + + public void addTalisman(String name) { + talismans.add(name); + } + + public List getTalismans() { + return talismans; + } + + public void setTalismans(List talismans) { + this.talismans = talismans; + } + + @Override + public String toString() { + return getFirstname() + " " + getLastname(); + } +} diff --git a/src/test/java/com/integralblue/hibernate/test/domain/PhoneNumber.java b/src/test/java/com/integralblue/hibernate/test/domain/PhoneNumber.java new file mode 100644 index 0000000..f9a2ece --- /dev/null +++ b/src/test/java/com/integralblue/hibernate/test/domain/PhoneNumber.java @@ -0,0 +1,82 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * License: GNU Lesser General Public License (LGPL), version 2.1 or later. + * See the lgpl.txt file in the root directory or . + */ + +package com.integralblue.hibernate.test.domain; + +import java.io.Serializable; + +/** + * PhoneNumber + */ +@SuppressWarnings("serial") +public class PhoneNumber implements Serializable { + private long personId = 0; + private String numberType = "home"; + private long phone = 0; + + public long getPersonId() { + return personId; + } + + public void setPersonId(long personId) { + this.personId = personId; + } + + public String getNumberType() { + return numberType; + } + + public void setNumberType(String numberType) { + this.numberType = numberType; + } + + public long getPhone() { + return phone; + } + + public void setPhone(long phone) { + this.phone = phone; + } + + @Override + public int hashCode() { + final int prime = 31; + int result = 1; + result = prime * result + + ((numberType == null) ? 0 : numberType.hashCode()); + result = prime * result + (int)(personId ^ (personId >>> 32)); + result = prime * result + (int)(phone ^ (phone >>> 32)); + return result; + } + + @Override + public boolean equals(Object obj) { + if (this == obj) + return true; + if (obj == null) + return false; + if (getClass() != obj.getClass()) + return false; + final PhoneNumber other = (PhoneNumber)obj; + if (numberType == null) { + if (other.numberType != null) + return false; + } else if (!numberType.equals(other.numberType)) + return false; + if (personId != other.personId) + return false; + if (phone != other.phone) + return false; + return true; + } + + @Override + public String toString() { + return numberType + ":" + phone; + } + +} diff --git a/src/test/java/com/integralblue/hibernate/test/domain/UuidItem.java b/src/test/java/com/integralblue/hibernate/test/domain/UuidItem.java new file mode 100644 index 0000000..40bde8d --- /dev/null +++ b/src/test/java/com/integralblue/hibernate/test/domain/UuidItem.java @@ -0,0 +1,37 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * License: GNU Lesser General Public License (LGPL), version 2.1 or later. + * See the lgpl.txt file in the root directory or . + */ +package com.integralblue.hibernate.test.domain; + +public class UuidItem { + private String id; + private String name; + private String description; + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } +} \ No newline at end of file diff --git a/src/test/java/com/integralblue/hibernate/test/domain/VersionedItem.java b/src/test/java/com/integralblue/hibernate/test/domain/VersionedItem.java new file mode 100644 index 0000000..04b7173 --- /dev/null +++ b/src/test/java/com/integralblue/hibernate/test/domain/VersionedItem.java @@ -0,0 +1,19 @@ +/* + * Hibernate, Relational Persistence for Idiomatic Java + * + * License: GNU Lesser General Public License (LGPL), version 2.1 or later. + * See the lgpl.txt file in the root directory or . + */ +package com.integralblue.hibernate.test.domain; + +public class VersionedItem extends Item { + private Long version; + + public Long getVersion() { + return version; + } + + public void setVersion(Long version) { + this.version = version; + } +} diff --git a/src/test/resources/hibernate-config/domain/Account.hbm.xml b/src/test/resources/hibernate-config/domain/Account.hbm.xml new file mode 100644 index 0000000..b846c22 --- /dev/null +++ b/src/test/resources/hibernate-config/domain/Account.hbm.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + diff --git a/src/test/resources/hibernate-config/domain/Event.hbm.xml b/src/test/resources/hibernate-config/domain/Event.hbm.xml new file mode 100644 index 0000000..97aaf79 --- /dev/null +++ b/src/test/resources/hibernate-config/domain/Event.hbm.xml @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/test/resources/hibernate-config/domain/HolidayCalendar.hbm.xml b/src/test/resources/hibernate-config/domain/HolidayCalendar.hbm.xml new file mode 100644 index 0000000..635fe04 --- /dev/null +++ b/src/test/resources/hibernate-config/domain/HolidayCalendar.hbm.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/src/test/resources/hibernate-config/domain/Item.hbm.xml b/src/test/resources/hibernate-config/domain/Item.hbm.xml new file mode 100644 index 0000000..90d2307 --- /dev/null +++ b/src/test/resources/hibernate-config/domain/Item.hbm.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/test/resources/hibernate-config/domain/Person.hbm.xml b/src/test/resources/hibernate-config/domain/Person.hbm.xml new file mode 100644 index 0000000..97096ad --- /dev/null +++ b/src/test/resources/hibernate-config/domain/Person.hbm.xml @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/test/resources/hibernate-config/domain/PhoneNumber.hbm.xml b/src/test/resources/hibernate-config/domain/PhoneNumber.hbm.xml new file mode 100644 index 0000000..733650c --- /dev/null +++ b/src/test/resources/hibernate-config/domain/PhoneNumber.hbm.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + diff --git a/src/test/resources/hibernate-config/hibernate.cfg.xml b/src/test/resources/hibernate-config/hibernate.cfg.xml new file mode 100644 index 0000000..3259f10 --- /dev/null +++ b/src/test/resources/hibernate-config/hibernate.cfg.xml @@ -0,0 +1,37 @@ + + + + + + + + + + thread + + true + true + true + org.hibernate.cache.jcache.JCacheRegionFactory + /hibernate-config/ehcache.xml + + true + + + + + + + + + + + + diff --git a/src/test/resources/hibernate.properties b/src/test/resources/hibernate.properties new file mode 100644 index 0000000..bbdf12a --- /dev/null +++ b/src/test/resources/hibernate.properties @@ -0,0 +1,18 @@ +# +# Hibernate, Relational Persistence for Idiomatic Java +# +# License: GNU Lesser General Public License (LGPL), version 2.1 or later. +# See the lgpl.txt file in the root directory or . +# +hibernate.dialect @db.dialect@ +hibernate.connection.driver_class @jdbc.driver@ +hibernate.connection.url @jdbc.url@ +hibernate.connection.username @jdbc.user@ +hibernate.connection.password @jdbc.pass@ + +hibernate.connection.pool_size 5 + +hibernate.cache.region_prefix hibernate.test +hibernate.cache.region.factory_class com.integralblue.hibernate.cache.springcache.SpringCacheRegionFactory + +hibernate.service.allow_crawling=false diff --git a/src/test/resources/log4j.properties b/src/test/resources/log4j.properties new file mode 100644 index 0000000..d60ad00 --- /dev/null +++ b/src/test/resources/log4j.properties @@ -0,0 +1,17 @@ +# +# Hibernate, Relational Persistence for Idiomatic Java +# +# License: GNU Lesser General Public License (LGPL), version 2.1 or later. +# See the lgpl.txt file in the root directory or . +# +log4j.appender.stdout=org.apache.log4j.ConsoleAppender +log4j.appender.stdout.Target=System.out +log4j.appender.stdout.layout=org.apache.log4j.PatternLayout +log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n + +log4j.rootLogger=info, stdout + +log4j.logger.org.hibernate.test=info + +# SQL Logging - HHH-6833 +log4j.logger.org.hibernate.SQL=debug