In the meantime -- do you guys have any idea how to map a custom JDBC type to Jboss CMP?
I'm using PostgreSQL, with it's proprietary types "point" and "circle". Their JDBC driver implements objects PGpoint and PGcircle which is exactly what I need; ResultSet.getObject() will return instances of those objects, etc.
In my CMP entity bean (via xdoclet), my getter and setter is using the "PGcircle" type.
Everything compiles fine, passes jboss's verifier, and goes to town.
When I read entity beans (finder, followed by calling the circle getter), everything is good.
However, when I try to create an entity bean, I get the following:
Could not create entity:java.sql.SQLException: ERROR: Attribute 'location' is of type 'point' but expression is of type 'int4'
You will need to rewrite or cast the expression
I realize this is better addressed by the jboss crowd directly, but they get tons of messages per day, and frankly, many of my CMP-related questions have gone unanswered there in the past. Sorry that this is off-topic but hopefully someone here can lend a quick hand.
Again, I'll be back later with results on the latest xdoclet build.
Bryan
Dmitri Colebatch wrote:
[EMAIL PROTECTED]">On Mon, 3 Sep 2001, Bryan Field-Elliot wrote:Am I correct, that my build.xml "ejbspec" needs to be "2.0", while my
cmp-version in my bean classes needs to be "1.x"? And should this all
work on Jboss 2.4 final?
yep. the problem you experienced boils down to defaults really. Last
night I changed it so that you could do exactly as you are saying and cmp
would default to 1.x. that should solve your problem.
cheesr
dim
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
