I would simply add these methods to your POJO, or copy the StringUtil into your project's source. Seems simple enough - no?
Matt On 2/1/07, Ding, Qin <[EMAIL PROTECTED]> wrote:
I built a class implements hibernate UserType. I put my class into model package. My UserType class uses util.StringUtil's encodeString and decodeString methods. However, It won't be compiled because util package is not visible to model package. It's only visible to service package. Of couse, I can make it visible to model but if I do that, at the end the two jars (i.e., dao jar and service jar) will both contains the util package, which is duplicated. Should I jar the util by itself? Before I do that, I'd like to hear from you the reason the util only goes with service, no model and web package can use it. If I change the file layout, would it make the upgrade difficult later? Thanks. Qin
-- http://raibledesigns.com
