Reputation
1,167
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
8 23
Newest
 Curious
Impact
~15k people reached

  • 0 posts edited
  • 3 helpful flags
  • 84 votes cast
Mar
20
awarded  Curious
Jan
31
accepted Is there an established pattern for associating a database entry with a Java class that executes on that data?
Jan
25
comment Is there an established pattern for associating a database entry with a Java class that executes on that data?
Very cool. In JPA I'm used to associating a single entity with a single table, but once I researched the JPA discriminant column like you described it makes perfect sense. I think an enum is the best way to identify the implementation. Basically a TaskType relationship table. Does that sound like what you were giving as an example?
Jan
25
comment Is there an established pattern for associating a database entry with a Java class that executes on that data?
What would be stored in the discriminant column, or tables with specific attributes? I don't have additional state to load. It really is just a different implementation. I guess I'm asking what that "identity" would be, and how I might initialize and cache the instance (in a theoretical sense).
Jan
25
asked Is there an established pattern for associating a database entry with a Java class that executes on that data?
Dec
10
awarded  Yearling
Sep
29
awarded  Popular Question
Dec
10
awarded  Yearling
Nov
3
accepted How to test issues in a local development environment that can only be introduced by clustering in production?
Nov
2
comment How to test issues in a local development environment that can only be introduced by clustering in production?
@RossPatterson Do you find that the Apache equivalent sheds significant light on most problems, or is it hit and miss?
Nov
1
comment How to test issues in a local development environment that can only be introduced by clustering in production?
While this is the optimum solution I do wonder about the cost effectiveness. Our network operations finally received the budget for a staging instance of our load balancer, but that was an expensive decision. I'm curious if there are open source load balancers that emulate their higher load professional counterparts. I know it still isn't entirely 1-to-1, but maybe a little closer?
Nov
1
asked How to test issues in a local development environment that can only be introduced by clustering in production?
Sep
30
awarded  Popular Question
Jun
17
awarded  Good Question
Apr
3
awarded  Popular Question
Dec
10
awarded  Yearling
May
30
accepted Is writing software in the absence of requirements a skill to possess or a situation I should avoid?
May
29
awarded  Good Question
May
29
awarded  Notable Question
May
29
awarded  Nice Question