{"id":91,"date":"2007-04-10T15:07:46","date_gmt":"2007-04-10T20:07:46","guid":{"rendered":"http:\/\/stein.everybody.org\/brain\/generate-hibernate-guid-with-sql-server\/"},"modified":"2011-12-01T10:04:57","modified_gmt":"2011-12-01T15:04:57","slug":"generate-hibernate-guid-with-sql-server","status":"publish","type":"post","link":"https:\/\/jeremystein.com\/brain\/generate-hibernate-guid-with-sql-server\/","title":{"rendered":"Generate Hibernate GUID with Sql Server"},"content":{"rendered":"<p>To create a Hibernate UUID (uuid.hex) within SQL code (e.g. a stored procedure) use this function:<\/p>\n<p><code>LOWER(REPLACE(NEWID(),'-',''))<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To create a Hibernate UUID (uuid.hex) within SQL code (e.g. a stored procedure) use this function: LOWER(REPLACE(NEWID(),&#8217;-&#8216;,&#8221;))<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-91","post","type-post","status-publish","format-standard","hentry","category-sql-server"],"_links":{"self":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts\/91","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/comments?post=91"}],"version-history":[{"count":0,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts\/91\/revisions"}],"wp:attachment":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/media?parent=91"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/categories?post=91"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/tags?post=91"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}