Patches item #437561, was opened at 2001-06-30 05:27
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376687&aid=437561&group_id=22866

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Vincent Harcq (vharcq)
Assigned to: Nobody/Anonymous (nobody)
Summary: pk-constraint when using prim-key-class

Initial Comment:
Hi,
This patch allows to use pk-constraint when having a 
PK class.  Prior to this it was only working when 
using primkey-field.
Can I commit that (to Branch 2.4 as well I guess) ?

Here is the diff:

diff -r1.13 JDBCInitCommand.java
74c74
<       if (jawsEntity.getPrimKeyField() != null && 
jawsEntity.hasPkConstraint())  
---
>       if (jawsEntity.hasPkConstraint())  
137,139c137,149
<                 log.debug("Primary key of 
table '"+jawsEntity.getTableName()+"' is '"
<                   +jawsEntity.getPrimKeyField()
+"'.");
<              } catch (Exception e)
---
>                    if (jawsEntity.getPrimKeyField() !
= null)
>                       log.debug("Primary key of 
table '"+jawsEntity.getTableName()+"' is '"
>                       
        +jawsEntity.getPrimKeyField()+"'.");
>                    else {
>                       String flds = "[";
>                       for (Iterator i = 
jawsEntity.getPkFields();i.hasNext();) {
>                                          flds += 
((PkFieldMetaData)i.next()).getName();
>                                          flds += 
i.hasNext()?",":"";
>                                       }
>                                   flds += "]";
>                       log.debug("Primary key of 
table '"+jawsEntity.getTableName()+"' is " + flds);
>                    }  
>                } catch (Exception e)



----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=376687&aid=437561&group_id=22866

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to