Patches item #662319, was opened at 2003-01-05 07:15
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=428710&aid=662319&group_id=40712

Category: Codegen
Group: None
Status: Open
Resolution: Accepted
Priority: 5
Submitted By: Max R. Andersen (maxcsaucdk)
Assigned to: Nobody/Anonymous (nobody)
Summary: Codegen for Hibernate 2  - release

Initial Comment:
Hi!




Here is my 98% complete patch for Hibernate 2.0's new 
and improved codegenerator :) I'm submitting this one 
know in hope that someone might test it and see if they 
like the new functionallity. Remember to use the 
hibernate-2.0.dtd and Hibernate2 CVS






Things that are new:


- <meta> tag support.




Look at http://hibernate.bluemars.net/57.html for 
examples of meta tag usage.




Currently class, subclass, id and property is allowed to 
have <meta> tags. As soon as I get to it i'll add support 
for it in the DTD for composite-id, version, timestamp, all 
the collection types (any others ?)




Thing that I have changed/fixed:




- fixed timestamp support.


  It assumed timestamp could support an type via the 
DTD. It could not. Now it uses java.util.Data as it's 
default - is this the correct thing to do ? (maybe we 
should add an type to timestamp in DTD ?)




- Uses logging instead of directly to System.out/err  (I've 
modified log4j.properties to have a console-friendly 
output of the tool logging)




### log for tools output, more console userfriendly. 
(purely optional)


log4j.appender.toolout=org.apache.log4j.ConsoleAppender


log4j.appender.toolout.Target=System.out


log4j.appender.toolout.layout=org.apache.log4j.PatternLa
yout


log4j.appender.toolout.layout.ConversionPattern=%p - 
%m%n




log4j.logger.net.sf.hibernate.tool=debug, toolout


log4j.additivity.net.sf.hibernate.tool=false




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

>Comment By: Gavin King (oneovthafew)
Date: 2003-01-22 00:05

Message:
Logged In: YES 
user_id=384580

Thanks Max, I'll integrate it tonight :)

peace

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

Comment By: Max R. Andersen (maxcsaucdk)
Date: 2003-01-18 10:41

Message:
Logged In: YES 
user_id=18119

Ok - first fix :)




1. fields now defaults to private 


2. fixed bug that would not let meta tags defined in 
subclass'es be "merged" down into the properties


3. the never-should-been-there "property-scope" is know 
removed and scope-get,scope-set,scope-class,scope-field 
now behaves the same.




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

Comment By: Max R. Andersen (maxcsaucdk)
Date: 2003-01-17 21:17

Message:
Logged In: YES 
user_id=18119

My mistake - small change, i'll fix it tommorow.


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

Comment By: Nobody/Anonymous (nobody)
Date: 2003-01-17 13:31

Message:
Logged In: NO 

I committed this to CVS. However, I have some issues with how 
scoping of field declarations is handled. They currently default to 
public (!) and this can be overridden by a meta named property-
scope. I think they should default to public, and be overrideable 
only by a <meta> at the property level, named scope-field 
(consistently with scope-set and scope-get).

Gavin 

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

Comment By: Max R. Andersen (maxcsaucdk)
Date: 2003-01-15 21:57

Message:
Logged In: YES 
user_id=18119

Will it *ever* be applied ? :)


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

Comment By: Max R. Andersen (maxcsaucdk)
Date: 2003-01-14 01:22

Message:
Logged In: YES 
user_id=18119

Yes - please do! :)


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

Comment By: Gavin King (oneovthafew)
Date: 2003-01-14 01:04

Message:
Logged In: YES 
user_id=384580

Okay, so I should apply the patch now?

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

Comment By: Max R. Andersen (maxcsaucdk)
Date: 2003-01-13 06:03

Message:
Logged In: YES 
user_id=18119

I accidently marked this "patch" as "Out of date" and now I 
can't bring it back to "normal" :(




Well - It is highly up-to-date, so just use it :)


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

Comment By: Max R. Andersen (maxcsaucdk)
Date: 2003-01-13 05:57

Message:
Logged In: YES 
user_id=18119

I have fittled around some more and it is now time for this to 
be integrated into Hibernate2 .... don't think it can be any 
better before people start trying to use it :)






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

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


-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to