Skip to content

Instantly share code, notes, and snippets.

@ieb
ieb / xsd2hbm.xsl
Created August 1, 2011 13:29
Transform to generate HBM files from a XSD
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:xpdl="http://www.wfmc.org/2002/XPDL1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsd2hbm="http://www.tfd.co.uk/2006/xsd2hbm.xsd"
exclude-result-prefixes="xpdl xsd2hbm xsd xsl">
<xsl:output doctype-public="-//Hibernate/Hibernate Mapping DTD 3.0//EN"
doctype-system="http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" />
<xsl:param name="tableprefix">wf</xsl:param>
<xsl:param name="package">uk.co.tfd.wf.api.model.design</xsl:param>
<xsl:variable name="lcletters">abcdefghijklmnopqrstuvwxyz</xsl:variable>
@ieb
ieb / builducam.sh
Created July 26, 2011 11:47
Building UCAM Production Instance
#!/bin/sh -e
# This script pulls and builds the ucam production instance.
# Its intended for developers to use. Production builds are normally managed by a Jenkins instance.
UpdateRepo()
{
local name=$1
local branch=$2
if [[ ! -d $name ]]; then
git clone git://github.com/ieb/$name.git