java - Hibernate proxy generation -


i going through documentation hibernate , found these lines

the no-argument constructor requirement persistent classes; hibernate has create objects you, using java reflection. constructor can private, package or public visibility required runtime proxy generation , efficient data retrieval without bytecode instrumentation

can please explain runtime proxy generation , efficient data retrieval without bytecode instrumention

runtime proxy means hibernate wrap class proxy class. can see in debugger, instantiated objects not of type of proxy one.

to so, hibernate needs override class. parameterless constructor needed call base() constructor. hibernate doesn't know how fill custom parameters. other think make properties , methods virtual can overridden too.

think of have third party library (one containing persistent classes) , need add general functionality them, without reading doc , analyzing class class, property property.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -