The simple answer is to connect the solar and hydro to the batteries through a breaker or fuse. And then connect a diversion controller to the battery, which will automatically turn on a load to dissapate any power not needed to fill the battery.
The load needs to be big enough to use all the power of the combined outputs of the solar and hydro.
The more complex answer depends on all the details of your sytem, size of solar array, output of hydro, distance between hydro and batteries, voltage of system, need for 120 volts, funds available, your technical skills, etc.
Chris