Patches item #685440, was opened at 2003-02-12 19:02
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428710&aid=685440&group_id=40712

Category: Codegen
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Klaus Zimmermann (zklaus)
Assigned to: Max R. Andersen (maxcsaucdk)
Summary: RFE-682592-hbm2java generate Beans style property events

Initial Comment:
This patch implements the generation of
bound and constraint properties as recommended
in the JavaBeans Spec. 1.0.1 Sect. 7.4.

It makes use of the meta-tag with attribute
beans-property-type.
Recognised values are bound and constraint, 
case-insensitive.

Example:
        <class name="A" discriminator-value="0">
                <id name = "id" unsaved-value = "null"
type="short">
                        <generator class="vm"/>
                </id>
                <property name="name" type="short">
                <meta
attribute="beans-property-type">constraint</meta>
                </property>
        </class>

Additionally it fixes what I consider to be
a misplaced brace in
net.sf.hibernate.tool.hbm2java.ClassName
which leads to name remaining null if the described
type is a primitive.


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

>Comment By: Max R. Andersen (maxcsaucdk)
Date: 2003-02-16 13:59

Message:
Logged In: YES 
user_id=18119

It is now committed to the cvs with some small bugfixing 
changes.




Your patch did not check if an property was an array when it 
was of an primitive type and thus did not notify changes as 
byte[] changes but as Byte changes - now it does




Your patch naively just uppercased the first character for a 
primitive type name - e.g. making char an Char where it should 
have been an Character - now it does.




So check out cvs and feel free to comment :)




and thanx for the patch :)


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

Comment By: Max R. Andersen (maxcsaucdk)
Date: 2003-02-15 08:54

Message:
Logged In: YES 
user_id=18119

I've reviewed it, and it seems ok. Will make the last tests 
tomorrow and then commit it :)

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

Comment By: Gavin King (oneovthafew)
Date: 2003-02-15 01:19

Message:
Logged In: YES 
user_id=384580

Max, would you please review and commit this?

Thanks guys :)

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

Comment By: Klaus Zimmermann (zklaus)
Date: 2003-02-14 16:43

Message:
Logged In: YES 
user_id=171184

I've added the Patch

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

Comment By: Gavin King (oneovthafew)
Date: 2003-02-13 08:36

Message:
Logged In: YES 
user_id=384580

There is no file attached. You need to click a little checkbox 
when you upload a file....

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428710&aid=685440&group_id=40712


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Reply via email to