users@cargotracker.java.net

Re: Re: How to deal with Filtering, Pagination and Sorting with DDD Repository-JAVAEE 7

From: reza_rahman <reza_rahman_at_lycos.com>
Date: Sun, 27 Mar 2016 00:44:10 -0400

If you really want to handle pagination this way, I suggest using a CDI request scoped bean instead of thread local. It's still a potential maintenance hazard but at least it's a bit more readable.
Sent via the Samsung Galaxy S7, an AT&T 4G LTE smartphone
-------- Original message --------From: reza_rahman <reza_rahman_at_lycos.com> Date: 3/27/16 12:17 AM (GMT-05:00) To: users_at_cargotracker.java.net Subject: Re: Re: How to deal with Filtering, Pagination and Sorting with DDD
  Repository-JAVAEE 7
This is really not a good idea. It's bound to be confusing for anyone needing to maintain the code later. It's far more maintenable to simply add the correct parameters explicitly to all calls across the layers.
Sent via the Samsung Galaxy S7, an AT&T 4G LTE smartphone