Re: Strange Problem

2009-07-30 Thread Tobias Schoessler
Lucas, my experience with mysql Autoincrement fields is that you have to map them as Long. there is some bug in the mysql jdbc driver which returns wrong meta information types if the field is set to autoincrement and some other type than BigInt. See http://lists.mysql.com/java/6383 On Thu, Jul

Re: Strange Problem

2009-07-30 Thread Michael Gentry
You shouldn't need to write your own method to get the office ID. Add the mapping to your ObjEntity by hand and regenerate the Java class and it should create a getOfficeId() for you. mrg On Thu, Jul 30, 2009 at 4:27 PM, Lucas Holt wrote: > I've got a situation where I need to obtain the primar

Strange Problem

2009-07-30 Thread Lucas Holt
I've got a situation where I need to obtain the primary key. My solution was to add a method like so: public Byte getOfficeId() { return (getObjectId() != null && !getObjectId().isTemporary()) ? (Byte) getObjectId().getIdSnapshot().get(OFFICE_ID_PK_COLUMN)

Re: Strange problem - all relationships not available at runtime

2008-08-03 Thread Devyandu
Thanks a lot for the hint. That was it. The changed xml files were not being copied from src to WEB-INF/class , could be permissions. So the changes I made were being reflected on the JAVA end but not in the xmls. I stopped server, deleted files and did a fresh build, all is fine. Thanks DB On Sun

Re: Strange problem - all relationships not available at runtime

2008-08-03 Thread Andrey Razumovsky
Very strange. Are you using some App Server? Are you sure the XMLs used on the server side contain those missing rels? If _CourseState is fine, the problem must be in XML descriptions 2008/8/2, Devyandu <[EMAIL PROTECTED]>: > > Need your expert help. > It could be a silly mistake on my part, but h

Strange problem - all relationships not available at runtime

2008-08-02 Thread Devyandu
Need your expert help. It could be a silly mistake on my part, but here goes. CourseState has a few fields and these relationships: But at runtime whenever I get a CourseState object it exposes only it's direct properties and the toState relationship. The other two relationships are not avail