Tony Morris
Java Q&A (FAQ, Trivia)
Co-Author of <a href="http://www.manning.com/bauer" target="_blank" rel="nofollow">Hibernate in Action</a>
Co-Author of <a href="http://www.amazon.com/exec/obidos/ASIN/193239415X/ref=jranch-20" target="_blank" rel="nofollow">Hibernate in Action</a>
Co-Author of <a href="http://www.amazon.com/exec/obidos/ASIN/193239415X/ref=jranch-20" target="_blank" rel="nofollow">Hibernate in Action</a>
Co-Author of <a href="http://www.amazon.com/exec/obidos/ASIN/193239415X/ref=jranch-20" target="_blank" rel="nofollow">Hibernate in Action</a>
Originally posted by Ali Pope:
I think one issue against runtime weaving/bytecode engineering is that the debugging is more difficult (my 2cent).
Originally posted by Erik Bengtson:
I don't think this controversy exists, no more. AOP uses the same approach and is well accepted.
I saw examples where the queries fired by cmp were being inspected by writing aspects, i guess on the call to the prepared statement etc.
Originally posted by Gavin King:
I personally very much prefer tools which do not get involved in my build cycle, because of my personal style of development, which is eclipse-style incremental compile and TDD-style fast code/test/debug cycles. However, it would be theoretically possible to have a bytecode processor which integrated with the IDE's incremental compile (I'm not sure if any existing JDO enhancers to it that way).
Originally posted by Gavin King:
By the way, if the source file did not correspond to the class file, that could potentially make debugging *incredibly* difficult; however, the JDO folks tell me that it is possible to implement the enhancer so that this is not a huge problem (I suppose the enhancer leaves the line numbers intact in the class file).
Originally posted by Gavin King:
I'm still not sure exactly how you are supposed step into the JDO implementation code from your business logic, but I guess since all credible JDO implementations are closed-source, you can't do that anyway ;-)
A typical application programmer would certainly never want to step into the technical source code of an O/R mapping tool. Unless there are bugs he thinks he can fix by himself very quickly.
Co-Author of <a href="http://www.manning.com/bauer" target="_blank" rel="nofollow">Hibernate in Action</a>
Co-Author of <a href="http://www.amazon.com/exec/obidos/ASIN/193239415X/ref=jranch-20" target="_blank" rel="nofollow">Hibernate in Action</a>
SCJP 1.2, SCJD, SCEA, IBM 484, Weblogic 7
I think one problem of Byte Code modification (especially when used with Hibernate) is that modified classes can't be serialized, i.e. if you use the hibernate classes as transfer object in a distributed environment.
The reason for that is, that a client doesn't know anything about the dynamic generated classes on the server.
Co-Author of <a href="http://www.amazon.com/exec/obidos/ASIN/193239415X/ref=jranch-20" target="_blank" rel="nofollow">Hibernate in Action</a>
Co-Author of <a href="http://www.amazon.com/exec/obidos/ASIN/193239415X/ref=jranch-20" target="_blank" rel="nofollow">Hibernate in Action</a>
This is not true, of course.
I'm not sure where you got that information from, since it is a major selling feature of Hibernate that persistent objects can be detached, serialized, and then later reattached.
A wop bop a lu bob a womp bam boom. Tutti frutti ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|