Bugs item #973298, was opened at 2004-06-15 12:04
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=536545&aid=973298&group_id=73047

Category: Templates
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jose Carlos BR (josecmojbr)
Assigned to: Nobody/Anonymous (nobody)
Summary: EntityBean.vsl not generate automatic values do PrimaryKey

Initial Comment:
The template EntityBean.vsl not generate the piece of
code to generate values to primary keys (attribute
java.lang.String with PrimaryKey stereotype). 

Original code:

#if (!$primaryKeyAttribute.complex)
#set ($primKey = $primaryKeyAttribute)
#if ($primKey.type == "java.lang.String")
        if ($primKey.name == null) {
            $primKey.name = new
java.rmi.server.UID().toString();
        }

#end
#end

I am using the following correction in template:

#if (!$primaryKeyAttribute.complex)
#set ($primKey = $primaryKeyAttribute)
#if ($pkclassname == "java.lang.String")
        if ($primKey.name == null) {
            $primKey.name = new
java.rmi.server.UID().toString();
        }

#end
#end

Thanks

José Carlos
JCMOJ

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=536545&aid=973298&group_id=73047


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Andromda-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/andromda-devel

Reply via email to