From car rental sample...

protected java.lang.String handleCreateAdministrator(

Session sess,

java.lang.String name,

java.lang.String accountNo,

java.lang.String password)

throws AdminsException

{

try

{

Administrator admin = AdministratorFactory.create(name, accountNo, password);

String id = (String) sess.save(admin);

return id;

}

catch (HibernateException e)

{

throw new EJBException(e);

}

}

What happens if this function is called twice with the same arguments (user registers twice... ) ?

Where is the preferred way for andromda to handle "unique" constraints ? Database level, in the code etc...

Also, I noticed that the car sample has no OCL for finders... Does andromda suppor ocl in finders ? How does this work ? :)

Thank you,

 

Gabriela


Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

Reply via email to