/[volute]/trunk/projects/theory/snapdm/res/jpa.xsl
ViewVC logotype

Diff of /trunk/projects/theory/snapdm/res/jpa.xsl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 357 by bourges.laurent, Thu May 1 19:39:14 2008 UTC revision 358 by gerard.lemson, Fri May 2 06:20:01 2008 UTC
# Line 14  Line 14 
14    <xsl:import href="common-ddl.xsl"/>    <xsl:import href="common-ddl.xsl"/>
15        
16    <xsl:output name="persistenceInfo" method="xml" encoding="UTF-8" indent="yes" />    <xsl:output name="persistenceInfo" method="xml" encoding="UTF-8" indent="yes" />
17    
18    <!-- Configuraiton parameters, set in build.properties -->
19      <xsl:param name="eclipseLink.jdbc.url"/>
20    
21      <xsl:param name="eclipseLink.jdbc.user"/>
22      <xsl:param name="eclipseLink.jdbc.password"/>
23    
24      <xsl:param name="eclipseLink.jdbc.driver"/>
25      <xsl:param name="eclipseLink.jdbc.read-connections.min"/>
26      <xsl:param name="eclipseLink.jdbc.read-connections.max"/>
27      <xsl:param name="eclipseLink.jdbc.write-connections.min"/>
28      <xsl:param name="eclipseLink.jdbc.write-connections.max"/>
29    
30    
31    
32    <xsl:key name="element" match="*//*" use="@xmiid"/>    <xsl:key name="element" match="*//*" use="@xmiid"/>
33    
# Line 53  Line 67 
67    
68    @NamedQueries( {    @NamedQueries( {
69        @NamedQuery(name = "<xsl:apply-templates select="$className"/>.findById", query = "SELECT o FROM <xsl:apply-templates select="$className"/> o WHERE o.id = :id")        @NamedQuery(name = "<xsl:apply-templates select="$className"/>.findById", query = "SELECT o FROM <xsl:apply-templates select="$className"/> o WHERE o.id = :id")
70    <xsl:if test="$extMod = 1">    <xsl:if test="$hasName = 1">
71  ,     @NamedQuery(name = "<xsl:apply-templates select="$className"/>.findByName", query = "SELECT o FROM <xsl:apply-templates select="$className"/> o WHERE o.name = :name")  ,     @NamedQuery(name = "<xsl:apply-templates select="$className"/>.findByName", query = "SELECT o FROM <xsl:apply-templates select="$className"/> o WHERE o.name = :name")
72    </xsl:if>    </xsl:if>
73    } )    } )
# Line 98  Line 112 
112    
113    
114    <xsl:template match="reference" mode="JPAAnnotation">    <xsl:template match="reference" mode="JPAAnnotation">
115      @Transient      @ManyToOne
116  <!--    @Column(name="<xsl:apply-templates select="." mode="columnName"/>") -->  <!--    @Column(name="<xsl:apply-templates select="." mode="columnName"/>") -->
117    </xsl:template>    </xsl:template>
118        
# Line 195  Line 209 
209  &cr;  &cr;
210      <properties>      <properties>
211                
212    <!--
213        <property name="eclipselink.ddl-generation" value="create-tables"/>        <property name="eclipselink.ddl-generation" value="create-tables"/>
214           -->      
215        <!-- local -->        <!-- local -->
216        <property name="eclipseLink.jdbc.url" value="jdbc:postgresql://localhost/simDB_test"/>        <property name="eclipseLink.jdbc.url">
217            <xsl:attribute name="value" select="$eclipseLink.jdbc.url"/>
218        <property name="eclipseLink.jdbc.user" value="postgres"/>        </property>
219        <property name="eclipseLink.jdbc.password" value="postgres"/>        <property name="eclipseLink.jdbc.user">
220            <xsl:attribute name="value" select="$eclipseLink.jdbc.user"/>
221        <property name="eclipseLink.jdbc.driver" value="org.postgresql.Driver"/>        </property>
222        <property name="eclipseLink.jdbc.read-connections.min" value="2"/>        <property name="eclipseLink.jdbc.password">
223        <property name="eclipseLink.jdbc.read-connections.max" value="5"/>          <xsl:attribute name="value" select="$eclipseLink.jdbc.password"/>
224        <property name="eclipseLink.jdbc.write-connections.min" value="2"/>        </property>
225        <property name="eclipseLink.jdbc.write-connections.max" value="5"/>        <property name="eclipseLink.jdbc.driver">
226            <xsl:attribute name="value" select="$eclipseLink.jdbc.driver"/>
227          </property>
228          <property name="eclipseLink.jdbc.read-connections.min">
229            <xsl:attribute name="value" select="$eclipseLink.jdbc.read-connections.min"/>
230          </property>
231          <property name="eclipseLink.jdbc.read-connections.max">
232            <xsl:attribute name="value" select="$eclipseLink.jdbc.read-connections.max"/>
233          </property>
234          <property name="eclipseLink.jdbc.write-connections.min">
235            <xsl:attribute name="value" select="$eclipseLink.jdbc.write-connections.min"/>
236          </property>
237          <property name="eclipseLink.jdbc.write-connections.max">
238            <xsl:attribute name="value" select="$eclipseLink.jdbc.write-connections.max"/>
239          </property>
240  &cr;  &cr;
241  &cr;  &cr;
242  <xsl:comment>  <xsl:comment>

Legend:
Removed from v.357  
changed lines
  Added in v.358

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26