the used hbm.xml file for the second problem:

  | <?xml version="1.0"?>
  | <!DOCTYPE hibernate-mapping SYSTEM 
"file:D:/eclipse/eclipse_3.1.1_jboss_dali/workspace/infonds_hibernate/db/dtd/hibernate-mapping-3.0.dtd">
  | <hibernate-mapping package="eu.cleversoft.infonds.ejb3.entities">
  |     <class name="InfondsFundsKurs" table="infonds_funds_kurs">
  |             <meta attribute="class-description">
  |         Die Kurse bzw. NAVs (Net Asset Values) der einzelnen Funds an den 
jeweiligen Tagen.
  |         @author Florian Clever
  |     </meta>
  |             <id name="fundsKursId" column="funds_kurs_id" 
type="java.lang.Integer">
  |                     <meta attribute="field-description">
  |             Generated Primary Key.
  |             </meta>
  |                     <generator class="native"/>
  |             </id>
  |             <!--
  |             <composite-id>
  |                     <key-many-to-one name="funds" column="funds_id" 
class="eu.cleversoft.infonds.ejb3.entities.InfondsFunds"/>
  |                     <key-property name="datum" column="datum" 
type="calendar"/>
  |             </composite-id>
  |             <property name="fundsKursId" column="funds_kurs_id" 
type="java.lang.Integer">
  |                     <meta attribute="field-description">
  |             Diese Funds Kurs ID wird von MySql als Autowert generiert ohne 
das Hibernate es mitbekommt,
  |             damit wir es als Substitute PK im infonds_abrechnung_freeze 
verwenden k?nnen.
  |                     </meta>
  |             </property>-->
  |             <properties name="fundsDatum">
  |                     <many-to-one name="funds" insert="false" update="false" 
column="funds_id" class="eu.cleversoft.infonds.ejb3.entities.InfondsFunds"/>
  |                     <property name="datum" insert="false" update="false" 
column="datum" type="calendar"/>
  |             </properties>
  |             <many-to-one name="funds" column="funds_id" 
class="eu.cleversoft.infonds.ejb3.entities.InfondsFunds"/>
  |             <property name="datum" column="datum" type="calendar"/>
  |             <property name="kurs" column="kurs" type="java.lang.Double">
  |                     <meta attribute="field-description">
  |             Das ist der Ruecknahmepreis.
  |                     </meta>
  |             </property>
  |             <property name="ausgabeKurs" column="ausgabeKurs" 
type="java.lang.Double" not-null="false"/>
  |             <property name="stueckzahl" column="stueckzahl" 
type="java.lang.Double">
  |                     <meta attribute="field-description">
  |         Stueckzahl ist die Anzahl Anteile des Funds an diesem Tag.
  |         Bei offenen Funds fluktuiert diese im Lauf der Zeit. Bei 
geschlossenen ist sie konstant.
  |             </meta>
  |             </property>
  |             <property name="volumen" column="volumen" 
type="java.lang.Double"/>
  |             <property name="frozen" type="java.lang.Boolean">
  |                     <formula>
  |                             (SELECT count(*)>0 FROM 
  |                             Infonds_Abrechnung_Freeze f
  |                             JOIN infonds_abrechnung a on 
a.abrechnung_id=f.abrechnung_id
  |                             WHERE f.tabelle="infonds_funds_kurs" and 
f.pk_id=funds_kurs_id and not isnull(a.freigabe_am))
  |                     </formula>
  |             </property>
  |     </class>
  | </hibernate-mapping>
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922435#3922435

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922435


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to