Be careful here!
If your husband is getting a 1 year work visa, that is NOT a 'Schengen Visa' as mentioned here! It will quite likely be a specific visa for Germany. And when you present that in Barcelona or wherever you enter the Schengen area they will not allow you in (except when you enter the Schengen area in Germany of course). It is true that there are no border controls between the Schengen countries, but you will not allowed in on a 'specific country visa' except for into the country concerned. And the usual 'Schengen visa' is only valid for a maximum of 90 days (in a rolling 180 day 'window'), so you certainly will not be getting one of those.
If you want to enter through Barcelona (or anywhere else but a German entry port), you will have to organise the appropriate paperwork for that option! The same applies if you want to visit other countries during your stay: although there are no border controls, in many countries (Netherlands comes to mind, but possibly others too), you MAY be asked for identification and with the 'German specific visa' you would be illegal!