Search:

Type: Posts; User: nekoval; Keyword(s):

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Replies
    8
    Views
    4,367

    Actually, I'm referring to DB design and how it...

    Actually, I'm referring to DB design and how it is handled by Hibernate. No one is saying that one-to-one object relationship is wrong. The problem is in its DB mapping. For example, PK generation...
  2. Replies
    8
    Views
    4,367

    Hmm. What's wrong with having many optional...

    Hmm. What's wrong with having many optional fields in one table?
  3. Replies
    8
    Views
    4,367

    It will look practically the same as one-to-many...

    It will look practically the same as one-to-many (in schema). That is, no one prevents you from attaching more than one entity in database (unless both entities share their primary keys, but then why...
  4. Replies
    8
    Views
    4,367

    The problem is that Hibernate does not really...

    The problem is that Hibernate does not really support optional one-to-one relationship.
    In fact, such relationship is a mistake from relational point of view and indicates design problems. If you...
  5. Replies
    1
    Views
    946

    why do you think this is an architectural...

    why do you think this is an architectural problem? I think you should post to Web forum instead.
  6. Simply use #2. Unless you're pretty sure all your...

    Simply use #2. Unless you're pretty sure all your result sets fit in memory.
    And think of this: you're wasting huge amounts of memory while users just never visit second page in 90% of cases.
  7. OSGi services might be helpful here, but also...

    OSGi services might be helpful here, but also could be an overkill.
  8. Just curious - why are you unhappy with c:out and...

    Just curious - why are you unhappy with c:out and how replacing this tag with another tag makes any difference?
  9. Replies
    7
    Views
    1,485

    This is called Inheritance and Delegation. It is...

    This is called Inheritance and Delegation. It is not a decorator/bridge/proxy/whatever.
  10. Replies
    4
    Views
    1,370

    It seems that your webapps will still be...

    It seems that your webapps will still be dependent on each other. What is the benefit of physically separating them?
  11. Replies
    11
    Views
    2,260

    some hardware devices support it on TCP level...

    some hardware devices support it on TCP level
    and expensive ones - on HTTP level

    as a low-cost solution you can try software LB, e.g. http://www.caucho.com/resin-3.0/config/balance.xtp#resin
  12. Your operation spans multiple transactional...

    Your operation spans multiple transactional resources. That means you have to either handle it in non-atomic way or use hardcore things like JTA and two-phase commits. Just a note, Spring cannot run...
  13. Replies
    21
    Views
    13,097

    Except that overhead of remote calls will...

    Except that overhead of remote calls will eliminate any benefit you can achieve from this solution very quickly.
  14. Replies
    1
    Views
    913

    I would'nt do that, unless you are 100% confident...

    I would'nt do that, unless you are 100% confident that you can provide good balancing between these layers.

    Different workload does not really make any sense because you use the same hardware i.e....
  15. Replies
    21
    Views
    13,097

    First of all, why do you want to distribute and...

    First of all, why do you want to distribute and cluster your application?
    I know that "clustering" sounds cool, but what exactly do you plan to cluster?

    E.g. if you want to cluster your Web load,...
  16. Replies
    4
    Views
    11,260

    You have to define return aliases, eg: ...

    You have to define return aliases, eg:


    <sql-query name="hasValidCaseId">
    <return-scalar column="id1" type="long"/>
    <return-scalar column="id2" type="long"/>
  17. Replies
    2
    Views
    894

    We do it in a filter. However, there's a big...

    We do it in a filter.
    However, there's a big issue you have to worry about - error handling.
    Usually any exception will cause transaction rollback, but how are you going to display error page is...
  18. Replies
    5
    Views
    1,360

    No, you don't need to iterate a...

    No, you don't need <form:options> to iterate a list.

    Just wondering why you are using command.state, when your command is State. For some reason, you are putting data into request attributes,...
  19. That's what every rookie OO designer does, at...

    That's what every rookie OO designer does, at least once in his life...

    I was very sad to hear that Guice provides support for such things. There's obviously something wrong with Guice or its...
  20. Spring Framework itself does not provide anything...

    Spring Framework itself does not provide anything except POJO wrappers.
    Have a look at http://www.zeroc.com and their product called ICE.
  21. Replies
    5
    Views
    931

    Unit test is your documentation. And fairly good...

    Unit test is your documentation. And fairly good one. If you refactor something, and forgot to rename your model, tests will fail.

    If you want more safety, add some jsp:useBeans into your JSP.
  22. Replies
    5
    Views
    931

    Sorry, I just don't get what sort of problem do...

    Sorry, I just don't get what sort of problem do you have.
    A testcase may assert ModelAndView returned by Controller, why do you need anything more?
  23. Replies
    5
    Views
    931

    JSP is a class which has inputs: -...

    JSP is a class which has inputs:
    - ServletContext
    - HttpServletRequest & Session
    - PageContext

    and output which is HTML. A typical test will assert output depending on various inputs.

    You...
  24. Replies
    6
    Views
    1,949

    Why don't you just take any of existing...

    Why don't you just take any of existing distributed filesystems?
    Or buy a huge NAS and use it.
  25. As I mentioned above, ${status.value} will always...

    As I mentioned above, ${status.value} will always return java.util.Date.toString().

    It does not use property editor. You have to format it explicitly, for example by using fmt taglib.
Results 1 to 25 of 56
Page 1 of 3 1 2 3