Switching Persistence Framework after implementation? [closed] - java

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
When design a system that uses a persistence framework (PF) to store and retrieve information from a database, say for example Hibernate, how important is it in the planning phase to choose a suitable framework?
Say for example that you find a more suitable PF later in development, would a switch require mayor rewrites in the entire system or would it be possible to contain the changes to the service-layer?

Changing the persistence framework is always a big effort, but you can use the DAO pattern to insulate the UI and business model of your system from those changes, and reduce the amount of code required for a rewrite.

In future if you need to switch to another PF it will require major change in the application.So you can use JPA right now so later you need to do small change in the application code.

Related

Composite relationship in RESTful API using Spring Boot and Spring Data JPA [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
What would be recommended way to implement composite relationship between two entities when building REST API using Spring Boot and Spring Data JPA?
As we have existence dependency between container and its contents, do we have to create, update and delete contents through container's API, or should it be handled through separate, specific content's API call?
In my opinion, this doesn't depend on the chosen framework (eg Spring) but depends on the chosen architecture.
If you, for example, adhere to DDD principles and your entities compose an aggregate, then you should work with them as a single whole.
Otherwise, if they are independent, you can work with them separately.

Unit test a single processor implementation (java) in Kafka Streams? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
The specific problem encountered is mocking context, state stores, and window objects pass into the function process.
Looks like all the examples, e.g., here and here are unit tests at the stream level (e.g., mockStreams, or using EmbeddedKafkaCluster).
If you're looking to test a single processor implementation, and need to mock context, state stores, etc, I would just use whatever testing tools you ordinarily use to mock things (Mockito, CGLIB, etc).
Beyond the scope of your question, there is also the ProcessorTopologyTestDriver. Posting in case you missed it. Kafka Streams is getting new/improved testing functionality in an upcoming version.

what should be choose by java developer bluemix vs softlayer [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
Hi am java developer with decade of experience with java/j2ee development, I got a chance from my organisation to do course and certification in bluemix or softlayer , and am confused what to choose. Any suggestions guys
This is really up to what you want to do and what you are comfortable with. SoftLayer is an Infrastructure as a Service Provider. This means that you as the customer are responsible for the Operating System updates and configuration, Middleware, and applications and services that you want to use.
If you would rather focus on just the code and don't really need to tweak the underlying OS or software stack than I would say Bluemix is the way to go as it is really more focused on Developers.
Really though it comes down to what you ultimately want to do with the platforms.

Laravel, Codeigniter or Zend? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I want to develop an ERP application. What is the best framework to use. Am good with Codeigniter and ready to learn a better framework. Plus, the application will be used in a a large organization. I have read many forums but can't end up with a concrete reason why I'd prefer one over the others.Is there an alternative programming language which is not necessarily web based? Any idea will be highly appreciated.
try laravel first as it is modern and has a lot of support. Go on the irc channel and it is a great place. zend will take a lot longer to build and plan.
if you want a proof of concept, you can get it up in a few days in laravel. then you can decide on where you want to take it from there.

How to implement login-specific behaviour throughout an application? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I have an web application that should only differ in one point: if a user is logged in, the data should automatically be saved to a DB.
Non-logged in users should be able to use the full application, but without persistence.
How could one implement this best through the whole application?
Would I have to call some Session.getUser.isLoggedIn() before every action that could potentially trigger a persistence action? That's what I came up so far.
Or are there better ways?
Having to write such behavior in single place would be the best approach.
That can be accomplished in variety of ways and depends on what is your technology stack.
Whats your front end? whats your persistence framework?
Lets say you are calling a Stateless session bean for persistence. you can put an interceptor before that, which would check for logged in user before proceeding.

Categories